Package org.apache.http.impl.conn
Class ManagedHttpClientConnectionFactory
- java.lang.Object
-
- org.apache.http.impl.conn.ManagedHttpClientConnectionFactory
-
- All Implemented Interfaces:
HttpConnectionFactory<HttpRoute,ManagedHttpClientConnection>
@Contract(threading=IMMUTABLE_CONDITIONAL) public class ManagedHttpClientConnectionFactory extends java.lang.Object implements HttpConnectionFactory<HttpRoute,ManagedHttpClientConnection>
Factory forManagedHttpClientConnection
instances.- Since:
- 4.3
-
-
Field Summary
Fields Modifier and Type Field Description static ManagedHttpClientConnectionFactory
INSTANCE
-
Constructor Summary
Constructors Constructor Description ManagedHttpClientConnectionFactory()
ManagedHttpClientConnectionFactory(HttpMessageParserFactory<HttpResponse> responseParserFactory)
ManagedHttpClientConnectionFactory(HttpMessageWriterFactory<HttpRequest> requestWriterFactory, HttpMessageParserFactory<HttpResponse> responseParserFactory)
ManagedHttpClientConnectionFactory(HttpMessageWriterFactory<HttpRequest> requestWriterFactory, HttpMessageParserFactory<HttpResponse> responseParserFactory, ContentLengthStrategy incomingContentStrategy, ContentLengthStrategy outgoingContentStrategy)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ManagedHttpClientConnection
create(HttpRoute route, ConnectionConfig config)
-
-
-
Field Detail
-
INSTANCE
public static final ManagedHttpClientConnectionFactory INSTANCE
-
-
Constructor Detail
-
ManagedHttpClientConnectionFactory
public ManagedHttpClientConnectionFactory(HttpMessageWriterFactory<HttpRequest> requestWriterFactory, HttpMessageParserFactory<HttpResponse> responseParserFactory, ContentLengthStrategy incomingContentStrategy, ContentLengthStrategy outgoingContentStrategy)
- Since:
- 4.4
-
ManagedHttpClientConnectionFactory
public ManagedHttpClientConnectionFactory(HttpMessageWriterFactory<HttpRequest> requestWriterFactory, HttpMessageParserFactory<HttpResponse> responseParserFactory)
-
ManagedHttpClientConnectionFactory
public ManagedHttpClientConnectionFactory(HttpMessageParserFactory<HttpResponse> responseParserFactory)
-
ManagedHttpClientConnectionFactory
public ManagedHttpClientConnectionFactory()
-
-
Method Detail
-
create
public ManagedHttpClientConnection create(HttpRoute route, ConnectionConfig config)
- Specified by:
create
in interfaceHttpConnectionFactory<HttpRoute,ManagedHttpClientConnection>
-
-