com.ning.http.client.simple.SimpleAHCTransferListener |
A simple transfer listener for use with the SimpleAsyncHttpClient
.
setDefaultThrowableHandler(com.ning.http.client.ThrowableHandler)
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
This method is called when bytes of the responses body are received.
| |||||||||||
This method is called when bytes are sent.
| |||||||||||
This method is called when the request is completed.
| |||||||||||
This method is called after the response headers are received.
| |||||||||||
This method is called after the connection status is received.
|
This method is called when bytes of the responses body are received.
url | the url for the connection. |
---|---|
amount | the number of transferred bytes so far. |
current | the number of transferred bytes since the last call to this method. |
total | the total number of bytes to be transferred. This is taken from the Content-Length-header and may be unspecified (-1). |
This method is called when bytes are sent.
url | the url for the connection. |
---|---|
amount | the number of transferred bytes so far. |
current | the number of transferred bytes since the last call to this method. |
total | the total number of bytes to be transferred. This is taken from the Content-Length-header and may be unspecified (-1). |
This method is called when the request is completed.
url | the url for the connection. |
---|---|
statusCode | the received status code. |
statusText | the received status text. |
This method is called after the response headers are received.
url | the url for the connection. |
---|---|
headers | the received headers, never null .
|
This method is called after the connection status is received.
url | the url for the connection. |
---|---|
statusCode | the received status code. |
statusText | the received status text. |