Package org.apache.http.impl.pool
Class BasicConnFactory
- java.lang.Object
-
- org.apache.http.impl.pool.BasicConnFactory
-
- All Implemented Interfaces:
ConnFactory<HttpHost,HttpClientConnection>
@Contract(threading=IMMUTABLE_CONDITIONAL) public class BasicConnFactory extends java.lang.Object implements ConnFactory<HttpHost,HttpClientConnection>
A very basicConnFactory
implementation that createsHttpClientConnection
instances given aHttpHost
instance.- Since:
- 4.2
- See Also:
HttpHost
-
-
Constructor Summary
Constructors Constructor Description BasicConnFactory()
BasicConnFactory(int connectTimeout, SocketConfig sconfig, ConnectionConfig cconfig)
BasicConnFactory(javax.net.SocketFactory plainfactory, javax.net.ssl.SSLSocketFactory sslfactory, int connectTimeout, SocketConfig sconfig, ConnectionConfig cconfig)
BasicConnFactory(javax.net.ssl.SSLSocketFactory sslfactory, HttpParams params)
Deprecated.BasicConnFactory(SocketConfig sconfig, ConnectionConfig cconfig)
BasicConnFactory(HttpParams params)
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HttpClientConnection
create(HttpHost host)
-
-
-
Constructor Detail
-
BasicConnFactory
@Deprecated public BasicConnFactory(javax.net.ssl.SSLSocketFactory sslfactory, HttpParams params)
Deprecated.
-
BasicConnFactory
@Deprecated public BasicConnFactory(HttpParams params)
Deprecated.
-
BasicConnFactory
public BasicConnFactory(javax.net.SocketFactory plainfactory, javax.net.ssl.SSLSocketFactory sslfactory, int connectTimeout, SocketConfig sconfig, ConnectionConfig cconfig)
- Since:
- 4.3
-
BasicConnFactory
public BasicConnFactory(int connectTimeout, SocketConfig sconfig, ConnectionConfig cconfig)
- Since:
- 4.3
-
BasicConnFactory
public BasicConnFactory(SocketConfig sconfig, ConnectionConfig cconfig)
- Since:
- 4.3
-
BasicConnFactory
public BasicConnFactory()
- Since:
- 4.3
-
-
Method Detail
-
create
public HttpClientConnection create(HttpHost host) throws java.io.IOException
- Specified by:
create
in interfaceConnFactory<HttpHost,HttpClientConnection>
- Throws:
java.io.IOException
-
-