@Experimental @Internal @Contract(threading=SAFE_CONDITIONAL) public class ClassicToAsyncAdaptor extends CloseableHttpClient
CloseableHttpClient implementation backed by CloseableHttpAsyncClient
acting as a compatibility bridge with the classic APIs based on the standard
InputStream / OutputStream model.| Constructor and Description |
|---|
ClassicToAsyncAdaptor(CloseableHttpAsyncClient client,
Timeout operationTimeout) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
close(CloseMode closeMode) |
protected CloseableHttpResponse |
doExecute(HttpHost target,
ClassicHttpRequest request,
HttpContext context) |
execute, execute, execute, execute, execute, execute, execute, executeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitexecuteOpenpublic ClassicToAsyncAdaptor(CloseableHttpAsyncClient client, Timeout operationTimeout)
protected CloseableHttpResponse doExecute(HttpHost target, ClassicHttpRequest request, HttpContext context) throws IOException
doExecute in class CloseableHttpClientIOExceptionpublic void close()
throws IOException
IOExceptionpublic void close(CloseMode closeMode)
Copyright © 1999–2021 The Apache Software Foundation. All rights reserved.