Class DefaultBHttpServerConnectionFactory
java.lang.Object
org.apache.hc.core5.http.impl.io.DefaultBHttpServerConnectionFactory
- All Implemented Interfaces:
HttpConnectionFactory<DefaultBHttpServerConnection>
@Contract(threading=IMMUTABLE_CONDITIONAL)
public class DefaultBHttpServerConnectionFactory
extends Object
implements HttpConnectionFactory<DefaultBHttpServerConnection>
Default factory for
HttpServerConnections.- Since:
- 4.3
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilder forDefaultBHttpServerConnectionFactory. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final CharCodingConfigprivate final Http1Configprivate final ContentLengthStrategyprivate final ContentLengthStrategyprivate final HttpMessageParserFactory<ClassicHttpRequest> private final HttpMessageWriterFactory<ClassicHttpResponse> private final String -
Constructor Summary
ConstructorsConstructorDescriptionDefaultBHttpServerConnectionFactory(String scheme, Http1Config http1Config, CharCodingConfig charCodingConfig) DefaultBHttpServerConnectionFactory(String scheme, Http1Config http1Config, CharCodingConfig charCodingConfig, ContentLengthStrategy incomingContentStrategy, ContentLengthStrategy outgoingContentStrategy, HttpMessageParserFactory<ClassicHttpRequest> requestParserFactory, HttpMessageWriterFactory<ClassicHttpResponse> responseWriterFactory) DefaultBHttpServerConnectionFactory(String scheme, Http1Config http1Config, CharCodingConfig charCodingConfig, HttpMessageParserFactory<ClassicHttpRequest> requestParserFactory, HttpMessageWriterFactory<ClassicHttpResponse> responseWriterFactory) -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Create a newDefaultBHttpServerConnectionFactory.Builder.createConnection(Socket socket) createConnection(SSLSocket sslSocket, Socket socket) (package private) DefaultBHttpServerConnectioncreateDetached(Socket socket)
-
Field Details
-
scheme
-
http1Config
-
charCodingConfig
-
incomingContentStrategy
-
outgoingContentStrategy
-
requestParserFactory
-
responseWriterFactory
-
-
Constructor Details
-
DefaultBHttpServerConnectionFactory
public DefaultBHttpServerConnectionFactory(String scheme, Http1Config http1Config, CharCodingConfig charCodingConfig, ContentLengthStrategy incomingContentStrategy, ContentLengthStrategy outgoingContentStrategy, HttpMessageParserFactory<ClassicHttpRequest> requestParserFactory, HttpMessageWriterFactory<ClassicHttpResponse> responseWriterFactory) -
DefaultBHttpServerConnectionFactory
public DefaultBHttpServerConnectionFactory(String scheme, Http1Config http1Config, CharCodingConfig charCodingConfig, HttpMessageParserFactory<ClassicHttpRequest> requestParserFactory, HttpMessageWriterFactory<ClassicHttpResponse> responseWriterFactory) -
DefaultBHttpServerConnectionFactory
public DefaultBHttpServerConnectionFactory(String scheme, Http1Config http1Config, CharCodingConfig charCodingConfig)
-
-
Method Details
-
createDetached
-
createConnection
Description copied from interface:HttpConnectionFactory- Specified by:
createConnectionin interfaceHttpConnectionFactory<DefaultBHttpServerConnection>- Parameters:
socket- the plain socket SSL socket has been layered over.- Returns:
- a new HttpConnection.
- Throws:
IOException- in case of an I/O error.
-
createConnection
public DefaultBHttpServerConnection createConnection(SSLSocket sslSocket, Socket socket) throws IOException Description copied from interface:HttpConnectionFactory- Specified by:
createConnectionin interfaceHttpConnectionFactory<DefaultBHttpServerConnection>- Parameters:
sslSocket- the SSL socket. May benull.socket- the plain socket SSL socket has been layered over.- Returns:
- a new HttpConnection.
- Throws:
IOException- in case of an I/O error.- Since:
- 5.3
-
builder
Create a newDefaultBHttpServerConnectionFactory.Builder.- Since:
- 5.1
-