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
HttpClientConnection
s.- Since:
- 4.3
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
Builder forDefaultBHttpClientConnectionFactory
. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final CharCodingConfig
private final Http1Config
private final ContentLengthStrategy
private final ContentLengthStrategy
private final HttpMessageWriterFactory
<ClassicHttpRequest> private final ResponseOutOfOrderStrategy
private 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) private
DefaultBHttpClientConnectionFactory
(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:
createConnection
in interfaceHttpConnectionFactory<DefaultBHttpClientConnection>
- Throws:
IOException
-
builder
Create a newDefaultBHttpClientConnectionFactory.Builder
.- Since:
- 5.1
-