@Contract(threading=IMMUTABLE_CONDITIONAL) public class DefaultBHttpServerConnectionFactory extends Object implements HttpConnectionFactory<DefaultBHttpServerConnection>
HttpServerConnection
s.Modifier and Type | Class and Description |
---|---|
static class |
DefaultBHttpServerConnectionFactory.Builder
Builder for
DefaultBHttpServerConnectionFactory . |
Constructor and Description |
---|
DefaultBHttpServerConnectionFactory(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) |
Modifier and Type | Method and Description |
---|---|
static DefaultBHttpServerConnectionFactory.Builder |
builder()
Create a new
DefaultBHttpServerConnectionFactory.Builder . |
DefaultBHttpServerConnection |
createConnection(Socket socket)
|
DefaultBHttpServerConnection |
createConnection(SSLSocket sslSocket,
Socket socket)
|
public DefaultBHttpServerConnectionFactory(String scheme, Http1Config http1Config, CharCodingConfig charCodingConfig, ContentLengthStrategy incomingContentStrategy, ContentLengthStrategy outgoingContentStrategy, HttpMessageParserFactory<ClassicHttpRequest> requestParserFactory, HttpMessageWriterFactory<ClassicHttpResponse> responseWriterFactory)
public DefaultBHttpServerConnectionFactory(String scheme, Http1Config http1Config, CharCodingConfig charCodingConfig, HttpMessageParserFactory<ClassicHttpRequest> requestParserFactory, HttpMessageWriterFactory<ClassicHttpResponse> responseWriterFactory)
public DefaultBHttpServerConnectionFactory(String scheme, Http1Config http1Config, CharCodingConfig charCodingConfig)
public DefaultBHttpServerConnection createConnection(Socket socket) throws IOException
HttpConnectionFactory
createConnection
in interface HttpConnectionFactory<DefaultBHttpServerConnection>
socket
- the plain socket SSL socket has been layered over.IOException
- in case of an I/O error.public DefaultBHttpServerConnection createConnection(SSLSocket sslSocket, Socket socket) throws IOException
HttpConnectionFactory
createConnection
in interface HttpConnectionFactory<DefaultBHttpServerConnection>
sslSocket
- the SSL socket. May be null
.socket
- the plain socket SSL socket has been layered over.IOException
- in case of an I/O error.public static DefaultBHttpServerConnectionFactory.Builder builder()
DefaultBHttpServerConnectionFactory.Builder
.Copyright © 2005–2021 The Apache Software Foundation. All rights reserved.