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