@Contract(threading=IMMUTABLE_CONDITIONAL) public class BasicNIOConnFactory extends Object implements NIOConnFactory<HttpHost,NHttpClientConnection>
NIOConnFactory
implementation that creates
NHttpClientConnection
instances given a HttpHost
instance.Modifier and Type | Field and Description |
---|---|
private NHttpConnectionFactory<? extends NHttpClientConnection> |
plainFactory |
private NHttpConnectionFactory<? extends NHttpClientConnection> |
sslFactory |
Modifier and Type | Method and Description |
---|---|
NHttpClientConnection |
create(HttpHost route,
IOSession session) |
private final NHttpConnectionFactory<? extends NHttpClientConnection> plainFactory
private final NHttpConnectionFactory<? extends NHttpClientConnection> sslFactory
public BasicNIOConnFactory(NHttpConnectionFactory<? extends NHttpClientConnection> plainFactory, NHttpConnectionFactory<? extends NHttpClientConnection> sslFactory)
public BasicNIOConnFactory(NHttpConnectionFactory<? extends NHttpClientConnection> plainFactory)
@Deprecated public BasicNIOConnFactory(SSLContext sslContext, SSLSetupHandler sslHandler, HttpResponseFactory responseFactory, ByteBufferAllocator allocator, HttpParams params)
@Deprecated public BasicNIOConnFactory(SSLContext sslContext, SSLSetupHandler sslHandler, HttpParams params)
BasicNIOConnFactory(SSLContext,
SSLSetupHandler, ConnectionConfig)
@Deprecated public BasicNIOConnFactory(HttpParams params)
BasicNIOConnFactory(ConnectionConfig)
public BasicNIOConnFactory(SSLContext sslContext, SSLSetupHandler sslHandler, NHttpMessageParserFactory<HttpResponse> responseParserFactory, NHttpMessageWriterFactory<HttpRequest> requestWriterFactory, ByteBufferAllocator allocator, ConnectionConfig config)
public BasicNIOConnFactory(SSLContext sslContext, SSLSetupHandler sslHandler, ConnectionConfig config)
public BasicNIOConnFactory(ConnectionConfig config)
public NHttpClientConnection create(HttpHost route, IOSession session) throws IOException
create
in interface NIOConnFactory<HttpHost,NHttpClientConnection>
IOException
WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses