Class LoggingBHttpServerConnectionFactory
- java.lang.Object
-
- org.apache.hc.core5.testing.classic.LoggingBHttpServerConnectionFactory
-
- All Implemented Interfaces:
HttpConnectionFactory<LoggingBHttpServerConnection>
public class LoggingBHttpServerConnectionFactory extends java.lang.Object implements HttpConnectionFactory<LoggingBHttpServerConnection>
-
-
Field Summary
Fields Modifier and Type Field Description private CharCodingConfig
charCodingConfig
private Http1Config
http1Config
private ContentLengthStrategy
incomingContentStrategy
static LoggingBHttpServerConnectionFactory
INSTANCE
private ContentLengthStrategy
outgoingContentStrategy
private HttpMessageParserFactory<ClassicHttpRequest>
requestParserFactory
private HttpMessageWriterFactory<ClassicHttpResponse>
responseWriterFactory
private java.lang.String
scheme
-
Constructor Summary
Constructors Constructor Description LoggingBHttpServerConnectionFactory()
LoggingBHttpServerConnectionFactory(java.lang.String scheme, Http1Config http1Config, CharCodingConfig charCodingConfig)
LoggingBHttpServerConnectionFactory(java.lang.String scheme, Http1Config http1Config, CharCodingConfig charCodingConfig, ContentLengthStrategy incomingContentStrategy, ContentLengthStrategy outgoingContentStrategy, HttpMessageParserFactory<ClassicHttpRequest> requestParserFactory, HttpMessageWriterFactory<ClassicHttpResponse> responseWriterFactory)
LoggingBHttpServerConnectionFactory(java.lang.String scheme, Http1Config http1Config, CharCodingConfig charCodingConfig, HttpMessageParserFactory<ClassicHttpRequest> requestParserFactory, HttpMessageWriterFactory<ClassicHttpResponse> responseWriterFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LoggingBHttpServerConnection
createConnection(java.net.Socket socket)
-
-
-
Field Detail
-
INSTANCE
public static final LoggingBHttpServerConnectionFactory INSTANCE
-
scheme
private final java.lang.String scheme
-
http1Config
private final Http1Config http1Config
-
charCodingConfig
private final CharCodingConfig charCodingConfig
-
incomingContentStrategy
private final ContentLengthStrategy incomingContentStrategy
-
outgoingContentStrategy
private final ContentLengthStrategy outgoingContentStrategy
-
requestParserFactory
private final HttpMessageParserFactory<ClassicHttpRequest> requestParserFactory
-
responseWriterFactory
private final HttpMessageWriterFactory<ClassicHttpResponse> responseWriterFactory
-
-
Constructor Detail
-
LoggingBHttpServerConnectionFactory
public LoggingBHttpServerConnectionFactory(java.lang.String scheme, Http1Config http1Config, CharCodingConfig charCodingConfig, ContentLengthStrategy incomingContentStrategy, ContentLengthStrategy outgoingContentStrategy, HttpMessageParserFactory<ClassicHttpRequest> requestParserFactory, HttpMessageWriterFactory<ClassicHttpResponse> responseWriterFactory)
-
LoggingBHttpServerConnectionFactory
public LoggingBHttpServerConnectionFactory(java.lang.String scheme, Http1Config http1Config, CharCodingConfig charCodingConfig, HttpMessageParserFactory<ClassicHttpRequest> requestParserFactory, HttpMessageWriterFactory<ClassicHttpResponse> responseWriterFactory)
-
LoggingBHttpServerConnectionFactory
public LoggingBHttpServerConnectionFactory(java.lang.String scheme, Http1Config http1Config, CharCodingConfig charCodingConfig)
-
LoggingBHttpServerConnectionFactory
public LoggingBHttpServerConnectionFactory()
-
-
Method Detail
-
createConnection
public LoggingBHttpServerConnection createConnection(java.net.Socket socket) throws java.io.IOException
- Specified by:
createConnection
in interfaceHttpConnectionFactory<LoggingBHttpServerConnection>
- Throws:
java.io.IOException
-
-