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 java.lang.Object implements HttpConnectionFactory<DefaultBHttpClientConnection>
Default factory forHttpClientConnections.- Since:
- 4.3
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDefaultBHttpClientConnectionFactory.BuilderBuilder forDefaultBHttpClientConnectionFactory.
-
Field Summary
Fields Modifier and Type Field Description private CharCodingConfigcharCodingConfigprivate Http1Confighttp1Configprivate ContentLengthStrategyincomingContentStrategyprivate ContentLengthStrategyoutgoingContentStrategyprivate HttpMessageWriterFactory<ClassicHttpRequest>requestWriterFactoryprivate ResponseOutOfOrderStrategyresponseOutOfOrderStrategyprivate HttpMessageParserFactory<ClassicHttpResponse>responseParserFactory
-
Constructor Summary
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DefaultBHttpClientConnectionFactory.Builderbuilder()Create a newDefaultBHttpClientConnectionFactory.Builder.DefaultBHttpClientConnectioncreateConnection(java.net.Socket socket)
-
-
-
Field Detail
-
http1Config
private final Http1Config http1Config
-
charCodingConfig
private final CharCodingConfig charCodingConfig
-
incomingContentStrategy
private final ContentLengthStrategy incomingContentStrategy
-
outgoingContentStrategy
private final ContentLengthStrategy outgoingContentStrategy
-
responseOutOfOrderStrategy
private final ResponseOutOfOrderStrategy responseOutOfOrderStrategy
-
requestWriterFactory
private final HttpMessageWriterFactory<ClassicHttpRequest> requestWriterFactory
-
responseParserFactory
private final HttpMessageParserFactory<ClassicHttpResponse> responseParserFactory
-
-
Constructor Detail
-
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 Detail
-
createConnection
public DefaultBHttpClientConnection createConnection(java.net.Socket socket) throws java.io.IOException
- Specified by:
createConnectionin interfaceHttpConnectionFactory<DefaultBHttpClientConnection>- Throws:
java.io.IOException
-
builder
public static DefaultBHttpClientConnectionFactory.Builder builder()
Create a newDefaultBHttpClientConnectionFactory.Builder.- Since:
- 5.1
-
-