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