Interface | Description |
---|---|
AsyncHandlerExtensions |
This interface hosts new low level callback methods on
AsyncHandler . |
ProgressAsyncHandler<T> |
An extended
AsyncHandler with two extra callback who get invoked during the content upload to a remote server. |
StreamedAsyncHandler<T> |
AsyncHandler that uses reactive streams to handle the request.
|
TransferListener |
A simple interface an application can implements in order to received byte transfer information.
|
Class | Description |
---|---|
AsyncHandlerExtensionsUtils | |
BodyDeferringAsyncHandler |
An AsyncHandler that returns Response (without body, so status code and
headers only) as fast as possible for inspection, but leaves you the option
to defer body consumption.
|
BodyDeferringAsyncHandler.BodyDeferringInputStream |
A simple helper class that is used to perform automatic "join" for async
download and the error checking of the Future of the request.
|
ExtendedAsyncHandler<T> | |
TransferCompletionHandler |
A
AsyncHandler that can be used to notify a set of TransferListener
AsyncHttpClient client = new AsyncHttpClient(); TransferCompletionHandler tl = new TransferCompletionHandler(); tl.addTransferListener(new TransferListener() { public void onRequestHeadersSent(HttpHeaders headers) { } public void onResponseHeadersReceived(HttpHeaders headers) { } public void onBytesReceived(ByteBuffer buffer) { } public void onBytesSent(long amount, long current, long total) { } public void onRequestResponseCompleted() { } public void onThrowable(Throwable t) { } }); Response response = httpClient.prepareGet("http://...").execute(tl).get(); |
Exception | Description |
---|---|
MaxRedirectException |
Thrown when the
DefaultAsyncHttpClientConfig.getMaxRedirects() has been reached. |
Copyright © 2017. All Rights Reserved.