Package org.apache.hc.core5.http.impl.io
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)
-
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
-
createConnection
- Specified by:
createConnectionin interfaceHttpConnectionFactory<DefaultBHttpClientConnection>- Throws:
IOException
-
builder
Create a newDefaultBHttpClientConnectionFactory.Builder.- Since:
- 5.1
-