@Contract(threading=IMMUTABLE_CONDITIONAL) public class DefaultHttpClientConnectionOperator extends 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(org.apache.http.config.Lookup<ConnectionSocketFactory> socketFactoryRegistry,
SchemePortResolver schemePortResolver,
DnsResolver dnsResolver) |
Modifier and Type | Method and Description |
---|---|
void |
connect(ManagedHttpClientConnection conn,
org.apache.http.HttpHost host,
InetSocketAddress localAddress,
int connectTimeout,
org.apache.http.config.SocketConfig socketConfig,
org.apache.http.protocol.HttpContext context) |
void |
upgrade(ManagedHttpClientConnection conn,
org.apache.http.HttpHost host,
org.apache.http.protocol.HttpContext context) |
public DefaultHttpClientConnectionOperator(org.apache.http.config.Lookup<ConnectionSocketFactory> socketFactoryRegistry, SchemePortResolver schemePortResolver, DnsResolver dnsResolver)
public void connect(ManagedHttpClientConnection conn, org.apache.http.HttpHost host, InetSocketAddress localAddress, int connectTimeout, org.apache.http.config.SocketConfig socketConfig, org.apache.http.protocol.HttpContext context) throws IOException
connect
in interface HttpClientConnectionOperator
IOException
public void upgrade(ManagedHttpClientConnection conn, org.apache.http.HttpHost host, org.apache.http.protocol.HttpContext context) throws IOException
upgrade
in interface HttpClientConnectionOperator
IOException
Copyright © 1999–2022 The Apache Software Foundation. All rights reserved.