| Package | Description |
|---|---|
| org.apache.http.impl.nio |
Default implementations of HTTP connections for asynchronous,
even driven communication.
|
| org.apache.http.impl.nio.pool |
Default implementations of client side connection pools
for asynchronous, even driven communication.
|
| org.apache.http.impl.nio.reactor |
Default implementation of event driven network communication APIs
based on Java NIO.
|
| org.apache.http.impl.nio.ssl | |
| org.apache.http.nio |
Core HTTP component APIs and primitives for asynchronous, event
driven communication.
|
| org.apache.http.nio.pool |
Client side connection pools APIs for asynchronous, event driven
communication.
|
| org.apache.http.nio.reactor |
Event driven network communication APIs loosely based on
Doug Lea's
reactor pattern.
|
| org.apache.http.nio.reactor.ssl |
TLS/SSL support for asynchronous, event driven communication.
|
| Modifier and Type | Field | Description |
|---|---|---|
protected IOSession |
NHttpConnectionBase.session |
| Modifier and Type | Method | Description |
|---|---|---|
protected void |
NHttpConnectionBase.bind(IOSession session) |
Binds the connection to a different
IOSession. |
void |
SSLClientIOEventDispatch.connected(IOSession session) |
Deprecated.
|
void |
SSLServerIOEventDispatch.connected(IOSession session) |
Deprecated.
|
protected NHttpClientIOTarget |
DefaultClientIOEventDispatch.createConnection(IOSession session) |
Deprecated.
Creates an instance of
DefaultNHttpClientConnection based on the
given IOSession. |
protected DefaultNHttpClientConnection |
DefaultHttpClientIODispatch.createConnection(IOSession session) |
|
protected DefaultNHttpServerConnection |
DefaultHttpServerIODispatch.createConnection(IOSession session) |
|
DefaultNHttpClientConnection |
DefaultNHttpClientConnectionFactory.createConnection(IOSession session) |
|
protected DefaultNHttpClientConnection |
DefaultNHttpClientConnectionFactory.createConnection(IOSession session,
org.apache.http.HttpResponseFactory responseFactory,
ByteBufferAllocator allocator,
org.apache.http.params.HttpParams params) |
Deprecated.
(4.3) no longer used.
|
DefaultNHttpServerConnection |
DefaultNHttpServerConnectionFactory.createConnection(IOSession session) |
|
protected DefaultNHttpServerConnection |
DefaultNHttpServerConnectionFactory.createConnection(IOSession session,
org.apache.http.HttpRequestFactory requestFactory,
ByteBufferAllocator allocator,
org.apache.http.params.HttpParams params) |
Deprecated.
(4.3) no longer used.
|
protected NHttpServerIOTarget |
DefaultServerIOEventDispatch.createConnection(IOSession session) |
Deprecated.
Creates an instance of
DefaultNHttpServerConnection based on the
given IOSession. |
protected NHttpClientIOTarget |
SSLClientIOEventDispatch.createConnection(IOSession session) |
Deprecated.
Creates an instance of
DefaultNHttpClientConnection based on the
given SSL IOSession. |
DefaultNHttpClientConnection |
SSLNHttpClientConnectionFactory.createConnection(IOSession iosession) |
|
protected DefaultNHttpClientConnection |
SSLNHttpClientConnectionFactory.createConnection(IOSession session,
org.apache.http.HttpResponseFactory responseFactory,
ByteBufferAllocator allocator,
org.apache.http.params.HttpParams params) |
Deprecated.
(4.3) no longer used.
|
DefaultNHttpServerConnection |
SSLNHttpServerConnectionFactory.createConnection(IOSession iosession) |
|
protected DefaultNHttpServerConnection |
SSLNHttpServerConnectionFactory.createConnection(IOSession session,
org.apache.http.HttpRequestFactory requestFactory,
ByteBufferAllocator allocator,
org.apache.http.params.HttpParams params) |
Deprecated.
(4.3) no longer used.
|
protected NHttpServerIOTarget |
SSLServerIOEventDispatch.createConnection(IOSession session) |
Deprecated.
Creates an instance of
DefaultNHttpServerConnection based on the
given IOSession. |
protected SSLIOSession |
SSLClientIOEventDispatch.createSSLIOSession(IOSession session,
javax.net.ssl.SSLContext sslContext,
SSLIOSessionHandler sslHandler) |
Deprecated.
Creates an instance of
SSLIOSession decorating the given
IOSession. |
protected SSLIOSession |
SSLNHttpClientConnectionFactory.createSSLIOSession(IOSession iosession,
javax.net.ssl.SSLContext sslContext,
SSLSetupHandler sslHandler) |
|
protected SSLIOSession |
SSLNHttpServerConnectionFactory.createSSLIOSession(IOSession iosession,
javax.net.ssl.SSLContext sslContext,
SSLSetupHandler sslHandler) |
|
protected SSLIOSession |
SSLServerIOEventDispatch.createSSLIOSession(IOSession session,
javax.net.ssl.SSLContext sslContext,
SSLIOSessionHandler sslHandler) |
Deprecated.
Creates an instance of
SSLIOSession decorating the given
IOSession. |
void |
SSLClientIOEventDispatch.disconnected(IOSession session) |
Deprecated.
|
void |
SSLServerIOEventDispatch.disconnected(IOSession session) |
Deprecated.
|
void |
SSLClientIOEventDispatch.inputReady(IOSession session) |
Deprecated.
|
void |
SSLServerIOEventDispatch.inputReady(IOSession session) |
Deprecated.
|
void |
SSLClientIOEventDispatch.outputReady(IOSession session) |
Deprecated.
|
void |
SSLServerIOEventDispatch.outputReady(IOSession session) |
Deprecated.
|
void |
SSLClientIOEventDispatch.timeout(IOSession session) |
Deprecated.
|
void |
SSLServerIOEventDispatch.timeout(IOSession session) |
Deprecated.
|
| Constructor | Description |
|---|---|
DefaultNHttpClientConnection(IOSession session,
int buffersize) |
|
DefaultNHttpClientConnection(IOSession session,
int buffersize,
int fragmentSizeHint,
ByteBufferAllocator allocator,
java.nio.charset.CharsetDecoder chardecoder,
java.nio.charset.CharsetEncoder charencoder,
org.apache.http.config.MessageConstraints constraints,
org.apache.http.entity.ContentLengthStrategy incomingContentStrategy,
org.apache.http.entity.ContentLengthStrategy outgoingContentStrategy,
NHttpMessageWriterFactory<org.apache.http.HttpRequest> requestWriterFactory,
NHttpMessageParserFactory<org.apache.http.HttpResponse> responseParserFactory) |
Creates new instance DefaultNHttpClientConnection given the underlying I/O session.
|
DefaultNHttpClientConnection(IOSession session,
int buffersize,
java.nio.charset.CharsetDecoder chardecoder,
java.nio.charset.CharsetEncoder charencoder,
org.apache.http.config.MessageConstraints constraints) |
|
DefaultNHttpClientConnection(IOSession session,
org.apache.http.HttpResponseFactory responseFactory,
ByteBufferAllocator allocator,
org.apache.http.params.HttpParams params) |
|
DefaultNHttpServerConnection(IOSession session,
int buffersize) |
|
DefaultNHttpServerConnection(IOSession session,
int buffersize,
int fragmentSizeHint,
ByteBufferAllocator allocator,
java.nio.charset.CharsetDecoder chardecoder,
java.nio.charset.CharsetEncoder charencoder,
org.apache.http.config.MessageConstraints constraints,
org.apache.http.entity.ContentLengthStrategy incomingContentStrategy,
org.apache.http.entity.ContentLengthStrategy outgoingContentStrategy,
NHttpMessageParserFactory<org.apache.http.HttpRequest> requestParserFactory,
NHttpMessageWriterFactory<org.apache.http.HttpResponse> responseWriterFactory) |
Creates new instance DefaultNHttpServerConnection given the underlying I/O session.
|
DefaultNHttpServerConnection(IOSession session,
int buffersize,
java.nio.charset.CharsetDecoder chardecoder,
java.nio.charset.CharsetEncoder charencoder,
org.apache.http.config.MessageConstraints constraints) |
|
DefaultNHttpServerConnection(IOSession session,
org.apache.http.HttpRequestFactory requestFactory,
ByteBufferAllocator allocator,
org.apache.http.params.HttpParams params) |
|
NHttpConnectionBase(IOSession session,
int buffersize,
int fragmentSizeHint,
ByteBufferAllocator allocator,
java.nio.charset.CharsetDecoder chardecoder,
java.nio.charset.CharsetEncoder charencoder,
org.apache.http.config.MessageConstraints constraints,
org.apache.http.entity.ContentLengthStrategy incomingContentStrategy,
org.apache.http.entity.ContentLengthStrategy outgoingContentStrategy) |
Creates new instance NHttpConnectionBase given the underlying I/O session.
|
NHttpConnectionBase(IOSession session,
int buffersize,
int fragmentSizeHint,
ByteBufferAllocator allocator,
java.nio.charset.CharsetDecoder chardecoder,
java.nio.charset.CharsetEncoder charencoder,
org.apache.http.entity.ContentLengthStrategy incomingContentStrategy,
org.apache.http.entity.ContentLengthStrategy outgoingContentStrategy) |
Creates new instance NHttpConnectionBase given the underlying I/O session.
|
NHttpConnectionBase(IOSession session,
ByteBufferAllocator allocator,
org.apache.http.params.HttpParams params) |
| Modifier and Type | Method | Description |
|---|---|---|
NHttpClientConnection |
BasicNIOConnFactory.create(org.apache.http.HttpHost route,
IOSession session) |
| Modifier and Type | Class | Description |
|---|---|---|
class |
IOSessionImpl |
Default implementation of
IOSession. |
class |
SSLIOSession |
Deprecated.
(4.2) use
SSLIOSession |
| Modifier and Type | Method | Description |
|---|---|---|
protected IOSession |
AbstractIOReactor.getSession(java.nio.channels.SelectionKey key) |
Obtains
IOSession instance associated with the given selection
key. |
IOSession |
SessionHandle.getSession() |
Deprecated.
|
IOSession |
SessionRequestImpl.getSession() |
| Modifier and Type | Method | Description |
|---|---|---|
void |
SessionRequestImpl.completed(IOSession session) |
|
void |
AbstractIODispatch.connected(IOSession session) |
|
protected abstract T |
AbstractIODispatch.createConnection(IOSession session) |
|
void |
AbstractIODispatch.disconnected(IOSession session) |
|
void |
AbstractIODispatch.inputReady(IOSession session) |
|
void |
AbstractIODispatch.outputReady(IOSession session) |
|
protected void |
AbstractIOReactor.queueClosedSession(IOSession session) |
Queues the given I/O session to be processed asynchronously as closed.
|
protected void |
AbstractIOReactor.sessionClosed(IOSession session) |
Triggered when a session has been closed.
|
protected void |
BaseIOReactor.sessionClosed(IOSession session) |
Processes closed I/O session.
|
void |
SessionClosedCallback.sessionClosed(IOSession session) |
|
protected void |
AbstractIOReactor.sessionCreated(java.nio.channels.SelectionKey key,
IOSession session) |
Triggered when new session has been created.
|
protected void |
BaseIOReactor.sessionCreated(java.nio.channels.SelectionKey key,
IOSession session) |
Processes newly created I/O session.
|
protected void |
AbstractIOReactor.sessionTimedOut(IOSession session) |
Triggered when a session has timed out.
|
protected void |
BaseIOReactor.sessionTimedOut(IOSession session) |
Processes timed out I/O session.
|
void |
AbstractIODispatch.timeout(IOSession session) |
|
void |
SSLSetupHandler.verify(IOSession iosession,
javax.net.ssl.SSLSession sslsession) |
Deprecated.
Triggered when the SSL connection has been established and initial SSL
handshake has been successfully completed.
|
| Constructor | Description |
|---|---|
SessionHandle(IOSession session) |
Deprecated.
|
SSLIOSession(IOSession session,
javax.net.ssl.SSLContext sslContext,
SSLIOSessionHandler handler) |
Deprecated.
|
SSLIOSession(IOSession session,
javax.net.ssl.SSLContext sslContext,
SSLSetupHandler handler) |
Deprecated.
|
| Modifier and Type | Method | Description |
|---|---|---|
protected NHttpClientIOTarget |
SSLClientIOEventDispatch.createConnection(IOSession session) |
Deprecated.
|
protected NHttpServerIOTarget |
SSLServerIOEventDispatch.createConnection(IOSession session) |
Deprecated.
|
protected SSLIOSession |
SSLClientIOEventDispatch.createSSLIOSession(IOSession session,
javax.net.ssl.SSLContext sslContext,
SSLSetupHandler sslHandler) |
Deprecated.
Creates an instance of
SSLIOSession decorating the given
IOSession. |
protected SSLIOSession |
SSLServerIOEventDispatch.createSSLIOSession(IOSession session,
javax.net.ssl.SSLContext sslContext,
SSLSetupHandler sslHandler) |
Deprecated.
Creates an instance of
SSLIOSession decorating the given
IOSession. |
| Modifier and Type | Method | Description |
|---|---|---|
T |
NHttpConnectionFactory.createConnection(IOSession session) |
| Modifier and Type | Method | Description |
|---|---|---|
C |
NIOConnFactory.create(T route,
IOSession session) |
| Modifier and Type | Method | Description |
|---|---|---|
IOSession |
SessionRequest.getSession() |
Returns
IOSession instance created as a result of this request
or null if the request is still pending. |
| Modifier and Type | Method | Description |
|---|---|---|
void |
IOEventDispatch.connected(IOSession session) |
Triggered after the given session has been just created.
|
void |
IOEventDispatch.disconnected(IOSession session) |
Triggered when the given session has been terminated.
|
void |
IOEventDispatch.inputReady(IOSession session) |
Triggered when the given session has input pending.
|
void |
IOEventDispatch.outputReady(IOSession session) |
Triggered when the given session is ready for output.
|
void |
IOEventDispatch.timeout(IOSession session) |
Triggered when the given session as timed out.
|
| Modifier and Type | Class | Description |
|---|---|---|
class |
SSLIOSession |
SSLIOSession is a decorator class intended to transparently extend
an IOSession with transport layer security capabilities based on
the SSL/TLS protocol. |
| Modifier and Type | Method | Description |
|---|---|---|
void |
SSLSetupHandler.verify(IOSession ioSession,
javax.net.ssl.SSLSession sslSession) |
Triggered when the SSL connection has been established and initial SSL
handshake has been successfully completed.
|
| Constructor | Description |
|---|---|
SSLIOSession(IOSession session,
SSLMode sslMode,
javax.net.ssl.SSLContext sslContext,
SSLSetupHandler handler) |
Creates new instance of
SSLIOSession class. |
SSLIOSession(IOSession session,
SSLMode sslMode,
org.apache.http.HttpHost host,
javax.net.ssl.SSLContext sslContext,
SSLSetupHandler handler) |
Creates new instance of
SSLIOSession class. |
SSLIOSession(IOSession session,
SSLMode sslMode,
org.apache.http.HttpHost host,
javax.net.ssl.SSLContext sslContext,
SSLSetupHandler handler,
SSLBufferManagementStrategy bufferManagementStrategy) |
Creates new instance of
SSLIOSession class. |