org.apache.http.impl.pool
Class BasicConnFactory
java.lang.Object
org.apache.http.impl.pool.BasicConnFactory
- All Implemented Interfaces:
- ConnFactory<HttpHost,HttpClientConnection>
@Immutable
public class BasicConnFactory
- extends Object
- implements ConnFactory<HttpHost,HttpClientConnection>
A very basic ConnFactory
implementation that creates
HttpClientConnection
instances given a HttpHost
instance.
The following parameters can be used to customize the behavior of this
class:
- Since:
- 4.2
- See Also:
HttpHost
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BasicConnFactory
public BasicConnFactory(SSLSocketFactory sslfactory,
HttpParams params)
BasicConnFactory
public BasicConnFactory(HttpParams params)
create
protected HttpClientConnection create(Socket socket,
HttpParams params)
throws IOException
- Throws:
IOException
create
public HttpClientConnection create(HttpHost host)
throws IOException
- Specified by:
create
in interface ConnFactory<HttpHost,HttpClientConnection>
- Throws:
IOException
Copyright © 2005-2013 The Apache Software Foundation. All Rights Reserved.