Class DefaultBHttpClientConnectionFactory
java.lang.Object
org.apache.hc.core5.http.impl.io.DefaultBHttpClientConnectionFactory
- All Implemented Interfaces:
HttpConnectionFactory<DefaultBHttpClientConnection>
@Contract(threading=IMMUTABLE_CONDITIONAL)
public class DefaultBHttpClientConnectionFactory
extends Object
implements HttpConnectionFactory<DefaultBHttpClientConnection>
Default factory for
HttpClientConnections.- Since:
- 4.3
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilder forDefaultBHttpClientConnectionFactory. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final CharCodingConfigprivate final Http1Configprivate final ContentLengthStrategyprivate final ContentLengthStrategyprivate final HttpMessageWriterFactory<ClassicHttpRequest> private final ResponseOutOfOrderStrategyprivate final HttpMessageParserFactory<ClassicHttpResponse> -
Constructor Summary
ConstructorsModifierConstructorDescriptionDefaultBHttpClientConnectionFactory(Http1Config http1Config, CharCodingConfig charCodingConfig) DefaultBHttpClientConnectionFactory(Http1Config http1Config, CharCodingConfig charCodingConfig, ContentLengthStrategy incomingContentStrategy, ContentLengthStrategy outgoingContentStrategy, HttpMessageWriterFactory<ClassicHttpRequest> requestWriterFactory, HttpMessageParserFactory<ClassicHttpResponse> responseParserFactory) privateDefaultBHttpClientConnectionFactory(Http1Config http1Config, CharCodingConfig charCodingConfig, ContentLengthStrategy incomingContentStrategy, ContentLengthStrategy outgoingContentStrategy, ResponseOutOfOrderStrategy responseOutOfOrderStrategy, HttpMessageWriterFactory<ClassicHttpRequest> requestWriterFactory, HttpMessageParserFactory<ClassicHttpResponse> responseParserFactory) DefaultBHttpClientConnectionFactory(Http1Config http1Config, CharCodingConfig charCodingConfig, HttpMessageWriterFactory<ClassicHttpRequest> requestWriterFactory, HttpMessageParserFactory<ClassicHttpResponse> responseParserFactory) -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Create a newDefaultBHttpClientConnectionFactory.Builder.createConnection(Socket socket) createConnection(SSLSocket sslSocket, Socket socket) (package private) DefaultBHttpClientConnection
-
Field Details
-
http1Config
-
charCodingConfig
-
incomingContentStrategy
-
outgoingContentStrategy
-
responseOutOfOrderStrategy
-
requestWriterFactory
-
responseParserFactory
-
-
Constructor Details
-
DefaultBHttpClientConnectionFactory
private DefaultBHttpClientConnectionFactory(Http1Config http1Config, CharCodingConfig charCodingConfig, ContentLengthStrategy incomingContentStrategy, ContentLengthStrategy outgoingContentStrategy, ResponseOutOfOrderStrategy responseOutOfOrderStrategy, HttpMessageWriterFactory<ClassicHttpRequest> requestWriterFactory, HttpMessageParserFactory<ClassicHttpResponse> responseParserFactory) -
DefaultBHttpClientConnectionFactory
public DefaultBHttpClientConnectionFactory(Http1Config http1Config, CharCodingConfig charCodingConfig, ContentLengthStrategy incomingContentStrategy, ContentLengthStrategy outgoingContentStrategy, HttpMessageWriterFactory<ClassicHttpRequest> requestWriterFactory, HttpMessageParserFactory<ClassicHttpResponse> responseParserFactory) -
DefaultBHttpClientConnectionFactory
public DefaultBHttpClientConnectionFactory(Http1Config http1Config, CharCodingConfig charCodingConfig, HttpMessageWriterFactory<ClassicHttpRequest> requestWriterFactory, HttpMessageParserFactory<ClassicHttpResponse> responseParserFactory) -
DefaultBHttpClientConnectionFactory
public DefaultBHttpClientConnectionFactory(Http1Config http1Config, CharCodingConfig charCodingConfig) -
DefaultBHttpClientConnectionFactory
public DefaultBHttpClientConnectionFactory()
-
-
Method Details
-
createDetached
DefaultBHttpClientConnection createDetached() -
createConnection
Description copied from interface:HttpConnectionFactory- Specified by:
createConnectionin interfaceHttpConnectionFactory<DefaultBHttpClientConnection>- 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 DefaultBHttpClientConnection createConnection(SSLSocket sslSocket, Socket socket) throws IOException Description copied from interface:HttpConnectionFactory- Specified by:
createConnectionin interfaceHttpConnectionFactory<DefaultBHttpClientConnection>- 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 newDefaultBHttpClientConnectionFactory.Builder.- Since:
- 5.1
-