public class DefaultHttpClientConnectionOperator extends java.lang.Object implements HttpClientConnectionOperator
HttpClientConnectionOperator used as default in Http client,
when no instance provided by user to BasicHttpClientConnectionManager or PoolingHttpClientConnectionManager constructor.| Constructor and Description |
|---|
DefaultHttpClientConnectionOperator(<any> socketFactoryRegistry,
SchemePortResolver schemePortResolver,
DnsResolver dnsResolver) |
| Modifier and Type | Method and Description |
|---|---|
void |
connect(ManagedHttpClientConnection conn,
HttpHost host,
java.net.InetSocketAddress localAddress,
TimeValue connectTimeout,
SocketConfig socketConfig,
HttpContext context)
Connect the given managed connection to the remote endpoint.
|
void |
upgrade(ManagedHttpClientConnection conn,
HttpHost host,
HttpContext context)
Upgrades transport security of the given managed connection
by using the TLS security protocol.
|
public DefaultHttpClientConnectionOperator(<any> socketFactoryRegistry,
SchemePortResolver schemePortResolver,
DnsResolver dnsResolver)
public void connect(ManagedHttpClientConnection conn, HttpHost host, java.net.InetSocketAddress localAddress, TimeValue connectTimeout, SocketConfig socketConfig, HttpContext context) throws java.io.IOException
HttpClientConnectionOperatorconnect in interface HttpClientConnectionOperatorconn - 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.java.io.IOExceptionpublic void upgrade(ManagedHttpClientConnection conn, HttpHost host, HttpContext context) throws java.io.IOException
HttpClientConnectionOperatorupgrade in interface HttpClientConnectionOperatorconn - the managed connection.host - the address of the opposite endpoint with TLS security.context - the execution context.java.io.IOException