Package org.apache.http.impl.nio
Class DefaultNHttpClientConnectionFactory
- java.lang.Object
-
- org.apache.http.impl.nio.DefaultNHttpClientConnectionFactory
-
- All Implemented Interfaces:
NHttpConnectionFactory<DefaultNHttpClientConnection>
@Contract(threading=IMMUTABLE_CONDITIONAL) public class DefaultNHttpClientConnectionFactory extends java.lang.Object implements NHttpConnectionFactory<DefaultNHttpClientConnection>
Default factory for plain (non-encrypted), non-blockingNHttpClientConnection
s.- Since:
- 4.2
-
-
Field Summary
Fields Modifier and Type Field Description static DefaultNHttpClientConnectionFactory
INSTANCE
-
Constructor Summary
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DefaultNHttpClientConnection
createConnection(IOSession session)
-
-
-
Field Detail
-
INSTANCE
public static final DefaultNHttpClientConnectionFactory INSTANCE
-
-
Constructor Detail
-
DefaultNHttpClientConnectionFactory
@Deprecated public DefaultNHttpClientConnectionFactory(HttpResponseFactory responseFactory, ByteBufferAllocator allocator, HttpParams params)
-
DefaultNHttpClientConnectionFactory
@Deprecated public DefaultNHttpClientConnectionFactory(HttpParams params)
Deprecated.
-
DefaultNHttpClientConnectionFactory
public DefaultNHttpClientConnectionFactory(ContentLengthStrategy incomingContentStrategy, ContentLengthStrategy outgoingContentStrategy, NHttpMessageParserFactory<HttpResponse> responseParserFactory, NHttpMessageWriterFactory<HttpRequest> requestWriterFactory, ByteBufferAllocator allocator, ConnectionConfig cconfig)
- Since:
- 4.3
-
DefaultNHttpClientConnectionFactory
public DefaultNHttpClientConnectionFactory(NHttpMessageParserFactory<HttpResponse> responseParserFactory, NHttpMessageWriterFactory<HttpRequest> requestWriterFactory, ByteBufferAllocator allocator, ConnectionConfig cconfig)
- Since:
- 4.3
-
DefaultNHttpClientConnectionFactory
public DefaultNHttpClientConnectionFactory(NHttpMessageParserFactory<HttpResponse> responseParserFactory, NHttpMessageWriterFactory<HttpRequest> requestWriterFactory, ConnectionConfig cconfig)
- Since:
- 4.3
-
DefaultNHttpClientConnectionFactory
public DefaultNHttpClientConnectionFactory(ConnectionConfig cconfig)
- Since:
- 4.3
-
DefaultNHttpClientConnectionFactory
public DefaultNHttpClientConnectionFactory()
- Since:
- 4.3
-
-
Method Detail
-
createConnection
public DefaultNHttpClientConnection createConnection(IOSession session)
- Specified by:
createConnection
in interfaceNHttpConnectionFactory<DefaultNHttpClientConnection>
-
-