|
||||||||||
| PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES | |||||||||
See:
Description
| Class Summary | |
|---|---|
| AbstractHttpAsyncClient | Deprecated. |
| CloseableHttpAsyncClient | Base implementation of HttpAsyncClient that also implements Closeable. |
| CloseableHttpPipeliningClient | Base implementation of HttpPipeliningClient that also
implements Closeable. |
| DefaultAsyncUserTokenHandler | Default implementation of UserTokenHandler
for asynchrounous HTTP client communication. |
| DefaultHttpAsyncClient | Deprecated. |
| HttpAsyncClientBuilder | Builder for CloseableHttpAsyncClient instances. |
| HttpAsyncClients | Factory methods for CloseableHttpAsyncClient and
CloseableHttpPipeliningClient instances. |
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();
}
|
||||||||||
| PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES | |||||||||