Package org.apache.http.impl.conn
Class DefaultHttpClientConnectionOperator
- java.lang.Object
-
- org.apache.http.impl.conn.DefaultHttpClientConnectionOperator
-
- All Implemented Interfaces:
HttpClientConnectionOperator
@Contract(threading=IMMUTABLE_CONDITIONAL) public class DefaultHttpClientConnectionOperator extends java.lang.Object implements HttpClientConnectionOperator
Default implementation ofHttpClientConnectionOperator
used as default in Http client, when no instance provided by user toBasicHttpClientConnectionManager
orPoolingHttpClientConnectionManager
constructor.- Since:
- 4.4
-
-
Constructor Summary
Constructors Constructor Description DefaultHttpClientConnectionOperator(Lookup<ConnectionSocketFactory> socketFactoryRegistry, SchemePortResolver schemePortResolver, DnsResolver dnsResolver)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
connect(ManagedHttpClientConnection conn, HttpHost host, java.net.InetSocketAddress localAddress, int connectTimeout, SocketConfig socketConfig, HttpContext context)
void
upgrade(ManagedHttpClientConnection conn, HttpHost host, HttpContext context)
-
-
-
Constructor Detail
-
DefaultHttpClientConnectionOperator
public DefaultHttpClientConnectionOperator(Lookup<ConnectionSocketFactory> socketFactoryRegistry, SchemePortResolver schemePortResolver, DnsResolver dnsResolver)
-
-
Method Detail
-
connect
public void connect(ManagedHttpClientConnection conn, HttpHost host, java.net.InetSocketAddress localAddress, int connectTimeout, SocketConfig socketConfig, HttpContext context) throws java.io.IOException
- Specified by:
connect
in interfaceHttpClientConnectionOperator
- Throws:
java.io.IOException
-
upgrade
public void upgrade(ManagedHttpClientConnection conn, HttpHost host, HttpContext context) throws java.io.IOException
- Specified by:
upgrade
in interfaceHttpClientConnectionOperator
- Throws:
java.io.IOException
-
-