java.lang.Object | |
↳ | com.ning.http.client.resumable.ResumableAsyncHandler<T> |
An AsyncHandler
which support resumable download, e.g when used with an ResumableIOExceptionFilter
,
this handler can resume the download operation at the point it was before the interruption occured. This prevent having to
download the entire file again. It's the responsibility of the TransferListener
to track how many bytes has been transferred and to properly adjust the file's write position.
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
ResumableAsyncHandler.ResumableProcessor | An interface to implement in order to manage the way the incomplete file management are handled. |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Invoke this API if you want to set the Range header on your
Request based on the last valid bytes
position. | |||||||||||
Invoked as soon as some response body part are received.
| |||||||||||
Invoked once the HTTP response processing is finished.
| |||||||||||
Invoked as soon as the HTTP headers has been received.
| |||||||||||
Invoked as soon as the HTTP status line has been received
| |||||||||||
Invoked when an unexpected exception occurs during the processing of the response.
| |||||||||||
Set a
ResumableListener |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() |
Invoked as soon as some response body part are received. Could be invoked many times.
bodyPart | response's body part. |
---|
AsyncHandler.STATE
telling to CONTINUE or ABORT the current processing.Exception |
---|
Invoked once the HTTP response processing is finished.
Gets always invoked as last callback method.Exception |
---|
Invoked as soon as the HTTP headers has been received. Can potentially be invoked more than once if a broken server sent trailing headers.
headers | the HTTP headers. |
---|
AsyncHandler.STATE
telling to CONTINUE or ABORT the current processing.Exception |
---|
Invoked as soon as the HTTP status line has been received
status | the status code and test of the response |
---|
AsyncHandler.STATE
telling to CONTINUE or ABORT the current processing.Exception |
---|
Invoked when an unexpected exception occurs during the processing of the response. The exception may have been produced by implementation of onXXXReceived method invocation.
t | a Throwable |
---|