@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,
org.apache.hc.core5.util.Timeout operationTimeout) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
close(org.apache.hc.core5.io.CloseMode closeMode) |
protected CloseableHttpResponse |
doExecute(org.apache.hc.core5.http.HttpHost target,
org.apache.hc.core5.http.ClassicHttpRequest request,
org.apache.hc.core5.http.protocol.HttpContext context) |
execute, execute, execute, execute, execute, execute, execute, execute
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
executeOpen
public ClassicToAsyncAdaptor(CloseableHttpAsyncClient client, org.apache.hc.core5.util.Timeout operationTimeout)
protected CloseableHttpResponse doExecute(org.apache.hc.core5.http.HttpHost target, org.apache.hc.core5.http.ClassicHttpRequest request, org.apache.hc.core5.http.protocol.HttpContext context) throws IOException
doExecute
in class CloseableHttpClient
IOException
public void close() throws IOException
IOException
public void close(org.apache.hc.core5.io.CloseMode closeMode)
Copyright © 1999–2021 The Apache Software Foundation. All rights reserved.