@Contract(threading=STATELESS)
@Internal
public interface HttpClientConnectionOperator
| Modifier and Type | Method and Description |
|---|---|
void |
connect(ManagedHttpClientConnection conn,
org.apache.hc.core5.http.HttpHost host,
InetSocketAddress localAddress,
org.apache.hc.core5.util.TimeValue connectTimeout,
org.apache.hc.core5.http.io.SocketConfig socketConfig,
org.apache.hc.core5.http.protocol.HttpContext context)
Connect the given managed connection to the remote endpoint.
|
void |
upgrade(ManagedHttpClientConnection conn,
org.apache.hc.core5.http.HttpHost host,
org.apache.hc.core5.http.protocol.HttpContext context)
Upgrades transport security of the given managed connection
by using the TLS security protocol.
|
void connect(ManagedHttpClientConnection conn, org.apache.hc.core5.http.HttpHost host, InetSocketAddress localAddress, org.apache.hc.core5.util.TimeValue connectTimeout, org.apache.hc.core5.http.io.SocketConfig socketConfig, org.apache.hc.core5.http.protocol.HttpContext context) throws IOException
conn - the managed connection.host - the address of the opposite endpoint.localAddress - the address of the local endpoint.connectTimeout - the timeout of the connect operation.socketConfig - the socket configuration.context - the execution context.IOExceptionvoid upgrade(ManagedHttpClientConnection conn, org.apache.hc.core5.http.HttpHost host, org.apache.hc.core5.http.protocol.HttpContext context) throws IOException
conn - the managed connection.host - the address of the opposite endpoint with TLS security.context - the execution context.IOExceptionCopyright © 1999–2022 The Apache Software Foundation. All rights reserved.