| com.ning.http.client.ProgressAsyncHandler<T> |
Known Indirect Subclasses
|
An extended AsyncHandler with two extra callback who get invoked during the content upload to a remote server.
This AsyncHandler must be used only with PUT and POST request.
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
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 wasn't fully written in a single I/O write
operation. | |||||||||||
Invoked when the content (a java.io.File, String or java.io.FileInputStream has been fully
written on the I/O socket.
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From interface
com.ning.http.client.AsyncHandler
| |||||||||||
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 wasn't fully written in a single I/O write
operation. This method is never invoked if the write operation complete in a sinfle I/O write.
| 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.