See: Description
| Interface | Description |
|---|---|
| InternalClientExec | |
| ResultCallback<T> | Deprecated |
| Class | Description |
|---|---|
| AbstractClientExchangeHandler |
Abstract
HttpAsyncClientExchangeHandler class
that implements connection management aspects shared by all HTTP exchange handlers. |
| AbstractHttpAsyncClient | Deprecated |
| CloseableHttpAsyncClient |
Base implementation of
HttpAsyncClient that also implements Closeable. |
| CloseableHttpAsyncClientBase | |
| CloseableHttpPipeliningClient |
Base implementation of
HttpPipeliningClient that also
implements Closeable. |
| DefaultAsyncRequestDirector<T> | Deprecated |
| DefaultAsyncUserTokenHandler |
Default implementation of
UserTokenHandler
for asynchrounous HTTP client communication. |
| DefaultClientExchangeHandlerImpl<T> |
Default implementation of
HttpAsyncClientExchangeHandler. |
| DefaultHttpAsyncClient | Deprecated |
| DefaultResultCallback<T> | Deprecated |
| FutureWrapper<T> | |
| HttpAsyncClientBuilder |
Builder for
CloseableHttpAsyncClient instances. |
| HttpAsyncClients |
Factory methods for
CloseableHttpAsyncClient and
CloseableHttpPipeliningClient instances. |
| InternalHttpAsyncClient | |
| InternalIODispatch | |
| InternalIOReactorExceptionHandler | |
| InternalRequestExecutor | |
| InternalState | |
| IOReactorUtils | |
| MainClientExec | |
| MinimalClientExchangeHandlerImpl<T> |
Default implementation of
HttpAsyncClientExchangeHandler. |
| MinimalHttpAsyncClient | |
| MinimalHttpAsyncClientBuilder |
Builder for
MinimalHttpAsyncClient instances. |
| ParamConfig | Deprecated |
| PipeliningClientExchangeHandlerImpl<T> |
HttpAsyncClientExchangeHandler implementation
that supports HTTP message pipelining. |
| Enum | Description |
|---|---|
| CloseableHttpAsyncClientBase.Status |
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();
}