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. -
Constructor Summary
ConstructorsConstructorDescriptionDefaultBHttpClientConnectionFactory(Http1Config http1Config, CharCodingConfig charCodingConfig) DefaultBHttpClientConnectionFactory(Http1Config http1Config, CharCodingConfig charCodingConfig, ContentLengthStrategy incomingContentStrategy, ContentLengthStrategy outgoingContentStrategy, 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)
-
Constructor Details
-
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
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
-