Package org.apache.http.impl
Class DefaultBHttpClientConnectionFactory
- java.lang.Object
-
- org.apache.http.impl.DefaultBHttpClientConnectionFactory
-
- All Implemented Interfaces:
HttpConnectionFactory<DefaultBHttpClientConnection>
@Contract(threading=IMMUTABLE_CONDITIONAL) public class DefaultBHttpClientConnectionFactory extends java.lang.Object implements HttpConnectionFactory<DefaultBHttpClientConnection>
Default factory forHttpClientConnection
s.- Since:
- 4.3
-
-
Field Summary
Fields Modifier and Type Field Description static DefaultBHttpClientConnectionFactory
INSTANCE
-
Constructor Summary
Constructors Constructor Description DefaultBHttpClientConnectionFactory()
DefaultBHttpClientConnectionFactory(ConnectionConfig cconfig)
DefaultBHttpClientConnectionFactory(ConnectionConfig cconfig, ContentLengthStrategy incomingContentStrategy, ContentLengthStrategy outgoingContentStrategy, HttpMessageWriterFactory<HttpRequest> requestWriterFactory, HttpMessageParserFactory<HttpResponse> responseParserFactory)
DefaultBHttpClientConnectionFactory(ConnectionConfig cconfig, HttpMessageWriterFactory<HttpRequest> requestWriterFactory, HttpMessageParserFactory<HttpResponse> responseParserFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DefaultBHttpClientConnection
createConnection(java.net.Socket socket)
-
-
-
Field Detail
-
INSTANCE
public static final DefaultBHttpClientConnectionFactory INSTANCE
-
-
Constructor Detail
-
DefaultBHttpClientConnectionFactory
public DefaultBHttpClientConnectionFactory(ConnectionConfig cconfig, ContentLengthStrategy incomingContentStrategy, ContentLengthStrategy outgoingContentStrategy, HttpMessageWriterFactory<HttpRequest> requestWriterFactory, HttpMessageParserFactory<HttpResponse> responseParserFactory)
-
DefaultBHttpClientConnectionFactory
public DefaultBHttpClientConnectionFactory(ConnectionConfig cconfig, HttpMessageWriterFactory<HttpRequest> requestWriterFactory, HttpMessageParserFactory<HttpResponse> responseParserFactory)
-
DefaultBHttpClientConnectionFactory
public DefaultBHttpClientConnectionFactory(ConnectionConfig cconfig)
-
DefaultBHttpClientConnectionFactory
public DefaultBHttpClientConnectionFactory()
-
-
Method Detail
-
createConnection
public DefaultBHttpClientConnection createConnection(java.net.Socket socket) throws java.io.IOException
- Specified by:
createConnection
in interfaceHttpConnectionFactory<DefaultBHttpClientConnection>
- Throws:
java.io.IOException
-
-