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/"); Futurefuture = 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 AbstractHttpAsyncClientExchangeHandler
class that implements connection management aspects shared by all HTTP exchange handlers.AbstractHttpAsyncClient Deprecated. CloseableHttpAsyncClient Base implementation ofHttpAsyncClient
that also implementsCloseable
.CloseableHttpAsyncClientBase CloseableHttpPipeliningClient Base implementation ofHttpPipeliningClient
that also implementsCloseable
.DefaultAsyncRequestDirector<T> Deprecated. DefaultAsyncUserTokenHandler Default implementation ofUserTokenHandler
for asynchrounous HTTP client communication.DefaultClientExchangeHandlerImpl<T> Default implementation ofHttpAsyncClientExchangeHandler
.DefaultHttpAsyncClient Deprecated. DefaultResultCallback<T> Deprecated. FutureWrapper<T> HttpAsyncClientBuilder Builder forCloseableHttpAsyncClient
instances.HttpAsyncClients Factory methods forCloseableHttpAsyncClient
andCloseableHttpPipeliningClient
instances.InternalHttpAsyncClient InternalIODispatch InternalIOReactorExceptionHandler InternalRequestExecutor InternalState IOReactorUtils MainClientExec MinimalClientExchangeHandlerImpl<T> Default implementation ofHttpAsyncClientExchangeHandler
.MinimalHttpAsyncClient MinimalHttpAsyncClientBuilder Builder forMinimalHttpAsyncClient
instances.ParamConfig Deprecated. PipeliningClientExchangeHandlerImpl<T> HttpAsyncClientExchangeHandler
implementation that supports HTTP message pipelining. -
Enum Summary Enum Description CloseableHttpAsyncClientBase.Status