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 private ConnectionConfig
cconfig
private ContentLengthStrategy
incomingContentStrategy
static DefaultBHttpServerConnectionFactory
INSTANCE
private ContentLengthStrategy
outgoingContentStrategy
private HttpMessageParserFactory<HttpRequest>
requestParserFactory
private HttpMessageWriterFactory<HttpResponse>
responseWriterFactory
-
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
-
cconfig
private final ConnectionConfig cconfig
-
incomingContentStrategy
private final ContentLengthStrategy incomingContentStrategy
-
outgoingContentStrategy
private final ContentLengthStrategy outgoingContentStrategy
-
requestParserFactory
private final HttpMessageParserFactory<HttpRequest> requestParserFactory
-
responseWriterFactory
private final HttpMessageWriterFactory<HttpResponse> responseWriterFactory
-
-
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
-
-