Package org.apache.http.impl.nio.pool
Class BasicNIOConnFactory
- java.lang.Object
-
- org.apache.http.impl.nio.pool.BasicNIOConnFactory
-
- All Implemented Interfaces:
NIOConnFactory<HttpHost,NHttpClientConnection>
@Contract(threading=IMMUTABLE_CONDITIONAL) public class BasicNIOConnFactory extends java.lang.Object implements NIOConnFactory<HttpHost,NHttpClientConnection>
A basicNIOConnFactory
implementation that createsNHttpClientConnection
instances given aHttpHost
instance.- Since:
- 4.2
-
-
Constructor Summary
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NHttpClientConnection
create(HttpHost route, IOSession session)
-
-
-
Constructor Detail
-
BasicNIOConnFactory
public BasicNIOConnFactory(NHttpConnectionFactory<? extends NHttpClientConnection> plainFactory, NHttpConnectionFactory<? extends NHttpClientConnection> sslFactory)
-
BasicNIOConnFactory
public BasicNIOConnFactory(NHttpConnectionFactory<? extends NHttpClientConnection> plainFactory)
-
BasicNIOConnFactory
@Deprecated public BasicNIOConnFactory(javax.net.ssl.SSLContext sslContext, SSLSetupHandler sslHandler, HttpResponseFactory responseFactory, ByteBufferAllocator allocator, HttpParams params)
-
BasicNIOConnFactory
@Deprecated public BasicNIOConnFactory(javax.net.ssl.SSLContext sslContext, SSLSetupHandler sslHandler, HttpParams params)
Deprecated.
-
BasicNIOConnFactory
@Deprecated public BasicNIOConnFactory(HttpParams params)
Deprecated.(4.3) useBasicNIOConnFactory(ConnectionConfig)
-
BasicNIOConnFactory
public BasicNIOConnFactory(javax.net.ssl.SSLContext sslContext, SSLSetupHandler sslHandler, NHttpMessageParserFactory<HttpResponse> responseParserFactory, NHttpMessageWriterFactory<HttpRequest> requestWriterFactory, ByteBufferAllocator allocator, ConnectionConfig config)
- Since:
- 4.3
-
BasicNIOConnFactory
public BasicNIOConnFactory(javax.net.ssl.SSLContext sslContext, SSLSetupHandler sslHandler, ConnectionConfig config)
- Since:
- 4.3
-
BasicNIOConnFactory
public BasicNIOConnFactory(ConnectionConfig config)
- Since:
- 4.3
-
-
Method Detail
-
create
public NHttpClientConnection create(HttpHost route, IOSession session) throws java.io.IOException
- Specified by:
create
in interfaceNIOConnFactory<HttpHost,NHttpClientConnection>
- Throws:
java.io.IOException
-
-