public interface

ProgressAsyncHandler

implements AsyncHandler<T>
com.ning.http.client.ProgressAsyncHandler<T>
Known Indirect Subclasses

Class Overview

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.

Summary

Public Methods
abstract AsyncHandler.STATE onContentWriteCompleted()
Invoked when the content (a java.io.File, String or java.io.FileInputStream has been fully written on the I/O socket.
abstract AsyncHandler.STATE onContentWriteProgress(long amount, long current, long total)
Invoked when the I/O operation associated with the Request body wasn't fully written in a single I/O write operation.
abstract AsyncHandler.STATE onHeaderWriteCompleted()
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

Public Methods

public abstract AsyncHandler.STATE onContentWriteCompleted ()

Invoked when the content (a java.io.File, String or java.io.FileInputStream has been fully written on the I/O socket.

Returns

public abstract AsyncHandler.STATE onContentWriteProgress (long amount, long current, long total)

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.

Parameters
amount The amount of bytes to transfer.
current The amount of bytes transferred
total The total number of bytes transferred
Returns

public abstract AsyncHandler.STATE onHeaderWriteCompleted ()

Invoked when the content (a java.io.File, String or java.io.FileInputStream has been fully written on the I/O socket.

Returns