Package org.apache.http.impl.nio.client
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();
}
-
ClassDescriptionAbstract
HttpAsyncClientExchangeHandlerclass that implements connection management aspects shared by all HTTP exchange handlers.Deprecated.Base implementation ofHttpAsyncClientthat also implementsCloseable.Base implementation ofHttpPipeliningClientthat also implementsCloseable.Deprecated.Default implementation ofUserTokenHandlerfor asynchrounous HTTP client communication.Default implementation ofHttpAsyncClientExchangeHandler.Deprecated.Deprecated.Builder forCloseableHttpAsyncClientinstances.Factory methods forCloseableHttpAsyncClientandCloseableHttpPipeliningClientinstances.Default implementation ofHttpAsyncClientExchangeHandler.Builder forMinimalHttpAsyncClientinstances.Deprecated.HttpAsyncClientExchangeHandlerimplementation that supports HTTP message pipelining.Deprecated.