@Immutable public class BasicConnFactory extends Object implements ConnFactory<HttpHost,HttpClientConnection>
ConnFactory
implementation that creates
HttpClientConnection
instances given a HttpHost
instance.
The following parameters can be used to customize the behavior of this
class:
HttpHost
Constructor and Description |
---|
BasicConnFactory(HttpParams params) |
BasicConnFactory(SSLSocketFactory sslfactory,
HttpParams params) |
Modifier and Type | Method and Description |
---|---|
HttpClientConnection |
create(HttpHost host) |
protected HttpClientConnection |
create(Socket socket,
HttpParams params) |
public BasicConnFactory(SSLSocketFactory sslfactory, HttpParams params)
public BasicConnFactory(HttpParams params)
protected HttpClientConnection create(Socket socket, HttpParams params) throws IOException
IOException
public HttpClientConnection create(HttpHost host) throws IOException
create
in interface ConnFactory<HttpHost,HttpClientConnection>
IOException
Copyright © 2005-2015 The Apache Software Foundation. All Rights Reserved.