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 forHttpClientConnection
s.- Since:
- 4.3
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DefaultBHttpClientConnectionFactory.Builder
Builder forDefaultBHttpClientConnectionFactory
.
-
Field Summary
Fields Modifier and Type Field Description private CharCodingConfig
charCodingConfig
private Http1Config
http1Config
private ContentLengthStrategy
incomingContentStrategy
private ContentLengthStrategy
outgoingContentStrategy
private HttpMessageWriterFactory<ClassicHttpRequest>
requestWriterFactory
private ResponseOutOfOrderStrategy
responseOutOfOrderStrategy
private HttpMessageParserFactory<ClassicHttpResponse>
responseParserFactory
-
Constructor Summary
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DefaultBHttpClientConnectionFactory.Builder
builder()
Create a newDefaultBHttpClientConnectionFactory.Builder
.DefaultBHttpClientConnection
createConnection(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:
createConnection
in interfaceHttpConnectionFactory<DefaultBHttpClientConnection>
- Throws:
java.io.IOException
-
builder
public static DefaultBHttpClientConnectionFactory.Builder builder()
Create a newDefaultBHttpClientConnectionFactory.Builder
.- Since:
- 5.1
-
-