| java.lang.Object | |
| ↳ | com.ning.http.client.AsyncCompletionHandler<T> |
Known Direct Subclasses
|
Known Indirect Subclasses
|
An AsyncHandler augmented with an onCompleted(Response) convenience method which gets called
when the Response processing is finished. This class also implement the ProgressAsyncHandler callback,
all doing nothing except returning CONTINUE
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Invoked as soon as some response body part are received.
| |||||||||||
Invoked once the HTTP response processing is finished.
| |||||||||||
Invoked once the HTTP response processing is finished.
| |||||||||||
Invoked when the content (a java.io.File, String or java.io.FileInputStream has been fully
written on the I/O socket.
| |||||||||||
Invoked when the I/O operation associated with the
Request body as been progressed. | |||||||||||
Invoked when the content (a java.io.File, String or java.io.FileInputStream has been fully
written on the I/O socket.
| |||||||||||
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.
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
com.ning.http.client.AsyncHandler
| |||||||||||
From interface
com.ning.http.client.ProgressAsyncHandler
| |||||||||||
Invoked as soon as some response body part are received. Could be invoked many times.
| content | 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 once the HTTP response processing is finished.
Gets always invoked as last callback method.| response | The Response |
|---|
| Exception | if something wrong happens |
|---|
Invoked when the content (a java.io.File, String or java.io.FileInputStream has been fully written on the I/O socket.
AsyncHandler.STATE telling to CONTINUE or ABORT the current processing.
Invoked when the I/O operation associated with the Request body as been progressed.
| amount | The amount of bytes to transfer. |
|---|---|
| current | The amount of bytes transferred |
| total | The total number of bytes transferred |
AsyncHandler.STATE telling to CONTINUE or ABORT the current processing.
Invoked when the content (a java.io.File, String or java.io.FileInputStream has been fully written on the I/O socket.
AsyncHandler.STATE telling to CONTINUE or ABORT the current processing.
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 |
|---|