public abstract class Processor<E>
extends java.lang.Object
| Constructor and Description |
|---|
Processor() |
| Modifier and Type | Method and Description |
|---|---|
ConnectionInfo |
getConnectionInfo() |
abstract E |
getContent()
Gets the content generated from the
response.
|
void |
onPublishedDownloadProgress(byte[] chunk,
int chunkLength,
long totalLength)
Called when a chunk has been downloaded from the request.
|
void |
onPublishedDownloadProgress(byte[] chunk,
int chunkLength,
long totalProcessed,
long totalLength)
Called when a chunk has been downloaded from the request.
|
void |
onPublishedUploadProgress(byte[] chunk,
int chunkLength,
long totalLength)
Called when a chunk has been uploaded to the request.
|
void |
onPublishedUploadProgress(byte[] chunk,
int chunkLength,
long totalProcessed,
long totalLength)
Called when a chunk has been uploaded to the request.
|
void |
onSend()
Called when the connection is first made
|
public ConnectionInfo getConnectionInfo()
public void onSend()
public void onPublishedDownloadProgress(byte[] chunk,
int chunkLength,
long totalLength)
chunk - The chunk of data. This will be the null after the total amount has been downloaded.chunkLength - The length of the chunktotalLength - The total size of the request. note: This can be
-1 during download.public void onPublishedDownloadProgress(byte[] chunk,
int chunkLength,
long totalProcessed,
long totalLength)
chunk - The chunk of data. This will be the null after the total amount has been downloaded.chunkLength - The length of the chunktotalProcessed - The total amount of data processed from the request.totalLength - The total size of the request. note: This can be
-1 during download.public void onPublishedUploadProgress(byte[] chunk,
int chunkLength,
long totalLength)
chunk - will be the total byte array when this is called.chunk - The chunk of datachunkLength - The length of the chunktotalLength - The total size of the request.public void onPublishedUploadProgress(byte[] chunk,
int chunkLength,
long totalProcessed,
long totalLength)
chunk - will be the total byte array when this is called.chunk - The chunk of datachunkLength - The length of the chunktotalProcessed - The total amount of data processed from the request.totalLength - The total size of the request.public abstract E getContent()