Modifier and Type | Class and Description |
---|---|
class |
AsyncCompletionHandler<T>
An
AsyncHandler augmented with an AsyncCompletionHandler.onCompleted(Response) convenience method which gets called
when the Response processing is finished. |
class |
AsyncCompletionHandlerBase
Simple
AsyncHandler of type Response |
Modifier and Type | Method and Description |
---|---|
<T> ListenableFuture<T> |
BoundRequestBuilder.execute(AsyncHandler<T> handler) |
<T> ListenableFuture<T> |
DefaultAsyncHttpClient.executeRequest(Request request,
AsyncHandler<T> handler) |
<T> ListenableFuture<T> |
AsyncHttpClient.executeRequest(Request request,
AsyncHandler<T> handler)
Execute an HTTP request.
|
<T> ListenableFuture<T> |
DefaultAsyncHttpClient.executeRequest(RequestBuilder requestBuilder,
AsyncHandler<T> handler) |
<T> ListenableFuture<T> |
AsyncHttpClient.executeRequest(RequestBuilder requestBuilder,
AsyncHandler<T> handler)
Execute an HTTP request.
|
Modifier and Type | Method and Description |
---|---|
AsyncHandler<T> |
FilterContext.getAsyncHandler() |
AsyncHandler<T> |
FilterContext.FilterContextBuilder.getAsyncHandler() |
static <T> AsyncHandler<T> |
ReleasePermitOnComplete.wrap(AsyncHandler<T> handler,
Semaphore available)
Wrap handler to release the permit of the semaphore on
onCompleted() . |
Modifier and Type | Method and Description |
---|---|
FilterContext.FilterContextBuilder<T> |
FilterContext.FilterContextBuilder.asyncHandler(AsyncHandler<T> asyncHandler) |
static <T> AsyncHandler<T> |
ReleasePermitOnComplete.wrap(AsyncHandler<T> handler,
Semaphore available)
Wrap handler to release the permit of the semaphore on
onCompleted() . |
Modifier and Type | Interface and Description |
---|---|
interface |
ProgressAsyncHandler<T>
An extended
AsyncHandler with two extra callback who get invoked during the content upload to a remote server. |
interface |
StreamedAsyncHandler<T>
AsyncHandler that uses reactive streams to handle the request.
|
Modifier and Type | Class and Description |
---|---|
class |
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.
|
class |
ExtendedAsyncHandler<T> |
class |
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(); |
Modifier and Type | Method and Description |
---|---|
static AsyncHandlerExtensions |
AsyncHandlerExtensionsUtils.toAsyncHandlerExtensions(AsyncHandler<?> asyncHandler) |
Modifier and Type | Class and Description |
---|---|
class |
ResumableAsyncHandler
An
AsyncHandler which support resumable download, e.g when used with an ResumableIOExceptionFilter ,
this handler can resume the download operation at the point it was before the interruption occurred. |
Constructor and Description |
---|
ResumableAsyncHandler(AsyncHandler<Response> decoratedAsyncHandler) |
ResumableAsyncHandler(long byteTransferred,
AsyncHandler<Response> decoratedAsyncHandler) |
Modifier and Type | Method and Description |
---|---|
AsyncHandler<V> |
NettyResponseFuture.getAsyncHandler() |
Modifier and Type | Method and Description |
---|---|
void |
NettyResponseFuture.setAsyncHandler(AsyncHandler<V> asyncHandler) |
Constructor and Description |
---|
NettyResponseFuture(Request originalRequest,
AsyncHandler<V> asyncHandler,
NettyRequest nettyRequest,
int maxRetry,
ChannelPoolPartitioning connectionPoolPartitioning,
ConnectionSemaphore connectionSemaphore,
ProxyServer proxyServer) |
Modifier and Type | Method and Description |
---|---|
void |
ChannelManager.tryToOfferChannelToPool(io.netty.channel.Channel channel,
AsyncHandler<?> asyncHandler,
boolean keepAlive,
Object partitionKey) |
Modifier and Type | Method and Description |
---|---|
boolean |
Interceptors.exitAfterIntercept(io.netty.channel.Channel channel,
NettyResponseFuture<?> future,
AsyncHandler<?> handler,
io.netty.handler.codec.http.HttpResponse response,
HttpResponseStatus status,
HttpResponseHeaders responseHeaders) |
boolean |
ResponseFiltersInterceptor.exitAfterProcessingFilters(io.netty.channel.Channel channel,
NettyResponseFuture<?> future,
AsyncHandler<?> handler,
HttpResponseStatus status,
HttpResponseHeaders responseHeaders) |
Modifier and Type | Method and Description |
---|---|
<T> ListenableFuture<T> |
NettyRequestSender.sendRequest(Request request,
AsyncHandler<T> asyncHandler,
NettyResponseFuture<T> future,
boolean performingNextRequest) |
Constructor and Description |
---|
NettyChannelConnector(InetAddress localAddress,
List<InetSocketAddress> remoteAddresses,
AsyncHandler<?> asyncHandler,
AsyncHttpClientState clientState,
AsyncHttpClientConfig config) |
Modifier and Type | Method and Description |
---|---|
io.netty.util.concurrent.Future<List<InetSocketAddress>> |
RequestHostnameResolver.resolve(Request request,
ProxyServer proxy,
AsyncHandler<?> asyncHandler) |
Modifier and Type | Class and Description |
---|---|
class |
WebDavCompletionHandlerBase<T>
Simple
AsyncHandler that add support for WebDav's response manipulation. |
Modifier and Type | Class and Description |
---|---|
class |
WebSocketUpgradeHandler
An
AsyncHandler which is able to execute WebSocket upgrade. |
Copyright © 2017. All Rights Reserved.