Package org.apache.http.impl.nio.client
Default asynchronous HTTP client implementation.
The usual execution flow can be demonstrated by the code snippet below:
CloseableHttpAsyncClient httpclient = HttpAsyncClients.createDefault();
try {
httpclient.start();
HttpGet request = new HttpGet("http://www.apache.org/");
Future future = httpclient.execute(request, null);
HttpResponse response = future.get();
System.out.println(response.getStatusLine());
// Do something useful with the response body
} finally {
httpclient.close();
}
-
Interface Summary Interface Description InternalClientExec ResultCallback<T> Deprecated. -
Class Summary Class Description AbstractClientExchangeHandler AbstractHttpAsyncClientExchangeHandlerclass that implements connection management aspects shared by all HTTP exchange handlers.AbstractHttpAsyncClient Deprecated. CloseableHttpAsyncClient Base implementation ofHttpAsyncClientthat also implementsCloseable.CloseableHttpAsyncClientBase CloseableHttpPipeliningClient Base implementation ofHttpPipeliningClientthat also implementsCloseable.DefaultAsyncRequestDirector<T> Deprecated. DefaultAsyncUserTokenHandler Default implementation ofUserTokenHandlerfor asynchrounous HTTP client communication.DefaultClientExchangeHandlerImpl<T> Default implementation ofHttpAsyncClientExchangeHandler.DefaultHttpAsyncClient Deprecated. DefaultResultCallback<T> Deprecated. FutureWrapper<T> HttpAsyncClientBuilder Builder forCloseableHttpAsyncClientinstances.HttpAsyncClients Factory methods forCloseableHttpAsyncClientandCloseableHttpPipeliningClientinstances.InternalHttpAsyncClient InternalIODispatch InternalIOReactorExceptionHandler InternalRequestExecutor InternalState IOReactorUtils MainClientExec MinimalClientExchangeHandlerImpl<T> Default implementation ofHttpAsyncClientExchangeHandler.MinimalHttpAsyncClient MinimalHttpAsyncClientBuilder Builder forMinimalHttpAsyncClientinstances.ParamConfig Deprecated. PipeliningClientExchangeHandlerImpl<T> HttpAsyncClientExchangeHandlerimplementation that supports HTTP message pipelining. -
Enum Summary Enum Description CloseableHttpAsyncClientBase.Status