| 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.nio |
Core HTTP component APIs and primitives for asynchronous, event
driven communication.
|
| org.apache.http.nio.protocol |
Core HTTP protocol execution framework and HTTP protocol handlers
for asynchronous, event driven communication.
|
| Modifier and Type | Class | Description |
|---|---|---|
class |
DefaultNHttpClientConnection |
Default implementation of the
NHttpClientConnection
interface. |
| Modifier and Type | Method | Description |
|---|---|---|
NHttpClientConnection |
BasicNIOConnFactory.create(org.apache.http.HttpHost route,
IOSession session) |
| Modifier and Type | Method | Description |
|---|---|---|
protected BasicNIOPoolEntry |
BasicNIOConnPool.createEntry(org.apache.http.HttpHost host,
NHttpClientConnection conn) |
| Constructor | Description |
|---|---|
BasicNIOPoolEntry(java.lang.String id,
org.apache.http.HttpHost route,
NHttpClientConnection conn) |
| Constructor | Description |
|---|---|
BasicNIOConnFactory(NHttpConnectionFactory<? extends NHttpClientConnection> plainFactory) |
|
BasicNIOConnFactory(NHttpConnectionFactory<? extends NHttpClientConnection> plainFactory,
NHttpConnectionFactory<? extends NHttpClientConnection> sslFactory) |
|
BasicNIOConnPool(ConnectingIOReactor ioreactor,
NIOConnFactory<org.apache.http.HttpHost,NHttpClientConnection> connFactory,
int connectTimeout) |
|
BasicNIOConnPool(ConnectingIOReactor ioreactor,
NIOConnFactory<org.apache.http.HttpHost,NHttpClientConnection> connFactory,
org.apache.http.params.HttpParams params) |
Deprecated.
|
| Modifier and Type | Interface | Description |
|---|---|---|
interface |
NHttpClientIOTarget |
Deprecated.
(4.2) no longer used
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
NHttpClientEventHandler.closed(NHttpClientConnection conn) |
Triggered when the connection is closed.
|
void |
NHttpClientHandler.closed(NHttpClientConnection conn) |
Deprecated.
Triggered when the connection is closed.
|
void |
NHttpClientEventHandler.connected(NHttpClientConnection conn,
java.lang.Object attachment) |
Triggered when a new outgoing connection is created.
|
void |
NHttpClientHandler.connected(NHttpClientConnection conn,
java.lang.Object attachment) |
Deprecated.
Triggered when a new outgoing connection is created.
|
void |
NHttpClientEventHandler.endOfInput(NHttpClientConnection conn) |
Triggered when the connection is closed by the opposite end point
(half-closed).
|
void |
NHttpClientEventHandler.exception(NHttpClientConnection conn,
java.lang.Exception ex) |
Triggered if an error occurs during the HTTP exchange.
|
void |
NHttpClientHandler.exception(NHttpClientConnection conn,
java.io.IOException ex) |
Deprecated.
Triggered when an I/O error occurs while reading from or writing
to the underlying channel.
|
void |
NHttpClientHandler.exception(NHttpClientConnection conn,
org.apache.http.HttpException ex) |
Deprecated.
Triggered when an HTTP protocol violation occurs while receiving
an HTTP response.
|
void |
NHttpClientEventHandler.inputReady(NHttpClientConnection conn,
ContentDecoder decoder) |
Triggered when the underlying channel is ready for reading a
new portion of the response entity through the corresponding
content decoder.
|
void |
NHttpClientHandler.inputReady(NHttpClientConnection conn,
ContentDecoder decoder) |
Deprecated.
Triggered when the underlying channel is ready for reading a
new portion of the response entity through the corresponding
content decoder.
|
void |
NHttpClientEventHandler.outputReady(NHttpClientConnection conn,
ContentEncoder encoder) |
Triggered when the underlying channel is ready for writing a next portion
of the request entity through the corresponding content encoder.
|
void |
NHttpClientHandler.outputReady(NHttpClientConnection conn,
ContentEncoder encoder) |
Deprecated.
Triggered when the underlying channel is ready for writing a next portion
of the request entity through the corresponding content encoder.
|
void |
NHttpClientEventHandler.requestReady(NHttpClientConnection conn) |
Triggered when the connection is ready to accept a new HTTP request.
|
void |
NHttpClientHandler.requestReady(NHttpClientConnection conn) |
Deprecated.
Triggered when the connection is ready to accept a new HTTP request.
|
void |
NHttpClientEventHandler.responseReceived(NHttpClientConnection conn) |
Triggered when an HTTP response is received.
|
void |
NHttpClientHandler.responseReceived(NHttpClientConnection conn) |
Deprecated.
Triggered when an HTTP response is received.
|
void |
NHttpClientEventHandler.timeout(NHttpClientConnection conn) |
Triggered when no input is detected on this connection over the
maximum period of inactivity.
|
void |
NHttpClientHandler.timeout(NHttpClientConnection conn) |
Deprecated.
Triggered when no input is detected on this connection over the
maximum period of inactivity.
|
| Modifier and Type | Method | Description |
|---|---|---|
<T,E extends org.apache.http.pool.PoolEntry<org.apache.http.HttpHost,NHttpClientConnection>> |
HttpAsyncRequester.execute(HttpAsyncRequestProducer requestProducer,
HttpAsyncResponseConsumer<T> responseConsumer,
E poolEntry,
org.apache.http.pool.ConnPool<org.apache.http.HttpHost,E> connPool,
org.apache.http.protocol.HttpContext context,
org.apache.http.concurrent.FutureCallback<T> callback) |
Initiates asynchronous HTTP request execution.
|
<T,E extends org.apache.http.pool.PoolEntry<org.apache.http.HttpHost,NHttpClientConnection>> |
HttpAsyncRequester.execute(HttpAsyncRequestProducer requestProducer,
HttpAsyncResponseConsumer<T> responseConsumer,
org.apache.http.pool.ConnPool<org.apache.http.HttpHost,E> connPool) |
Initiates asynchronous HTTP request execution.
|
<T,E extends org.apache.http.pool.PoolEntry<org.apache.http.HttpHost,NHttpClientConnection>> |
HttpAsyncRequester.execute(HttpAsyncRequestProducer requestProducer,
HttpAsyncResponseConsumer<T> responseConsumer,
org.apache.http.pool.ConnPool<org.apache.http.HttpHost,E> connPool,
org.apache.http.protocol.HttpContext context) |
Initiates asynchronous HTTP request execution.
|
<T,E extends org.apache.http.pool.PoolEntry<org.apache.http.HttpHost,NHttpClientConnection>> |
HttpAsyncRequester.execute(HttpAsyncRequestProducer requestProducer,
HttpAsyncResponseConsumer<T> responseConsumer,
org.apache.http.pool.ConnPool<org.apache.http.HttpHost,E> connPool,
org.apache.http.protocol.HttpContext context,
org.apache.http.concurrent.FutureCallback<T> callback) |
Initiates asynchronous HTTP request execution.
|
<T,E extends org.apache.http.pool.PoolEntry<org.apache.http.HttpHost,NHttpClientConnection>> |
HttpAsyncRequester.executePipelined(java.util.List<HttpAsyncRequestProducer> requestProducers,
java.util.List<HttpAsyncResponseConsumer<T>> responseConsumers,
E poolEntry,
org.apache.http.pool.ConnPool<org.apache.http.HttpHost,E> connPool,
org.apache.http.protocol.HttpContext context,
org.apache.http.concurrent.FutureCallback<java.util.List<T>> callback) |
Initiates asynchronous pipelined HTTP request execution.
|
<T,E extends org.apache.http.pool.PoolEntry<org.apache.http.HttpHost,NHttpClientConnection>> |
HttpAsyncRequester.executePipelined(org.apache.http.HttpHost target,
java.util.List<? extends HttpAsyncRequestProducer> requestProducers,
java.util.List<? extends HttpAsyncResponseConsumer<T>> responseConsumers,
org.apache.http.pool.ConnPool<org.apache.http.HttpHost,E> connPool,
org.apache.http.protocol.HttpContext context,
org.apache.http.concurrent.FutureCallback<java.util.List<T>> callback) |
Initiates asynchronous pipelined HTTP request execution.
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
AsyncNHttpClientHandler.closed(NHttpClientConnection conn) |
Deprecated.
|
void |
BufferingHttpClientHandler.closed(NHttpClientConnection conn) |
Deprecated.
|
void |
HttpAsyncRequestExecutor.closed(NHttpClientConnection conn) |
|
void |
ThrottlingHttpClientHandler.closed(NHttpClientConnection conn) |
Deprecated.
|
void |
AsyncNHttpClientHandler.connected(NHttpClientConnection conn,
java.lang.Object attachment) |
Deprecated.
|
void |
BufferingHttpClientHandler.connected(NHttpClientConnection conn,
java.lang.Object attachment) |
Deprecated.
|
void |
HttpAsyncRequestExecutor.connected(NHttpClientConnection conn,
java.lang.Object attachment) |
|
void |
ThrottlingHttpClientHandler.connected(NHttpClientConnection conn,
java.lang.Object attachment) |
Deprecated.
|
void |
HttpAsyncRequestExecutor.endOfInput(NHttpClientConnection conn) |
|
void |
AsyncNHttpClientHandler.exception(NHttpClientConnection conn,
java.io.IOException ex) |
Deprecated.
|
void |
AsyncNHttpClientHandler.exception(NHttpClientConnection conn,
org.apache.http.HttpException ex) |
Deprecated.
|
void |
BufferingHttpClientHandler.exception(NHttpClientConnection conn,
java.io.IOException ioex) |
Deprecated.
|
void |
BufferingHttpClientHandler.exception(NHttpClientConnection conn,
org.apache.http.HttpException httpex) |
Deprecated.
|
void |
HttpAsyncRequestExecutor.exception(NHttpClientConnection conn,
java.lang.Exception cause) |
|
void |
ThrottlingHttpClientHandler.exception(NHttpClientConnection conn,
java.io.IOException ex) |
Deprecated.
|
void |
ThrottlingHttpClientHandler.exception(NHttpClientConnection conn,
org.apache.http.HttpException ex) |
Deprecated.
|
<T> java.util.concurrent.Future<T> |
HttpAsyncRequester.execute(HttpAsyncRequestProducer requestProducer,
HttpAsyncResponseConsumer<T> responseConsumer,
NHttpClientConnection conn) |
Initiates asynchronous HTTP request execution.
|
<T> java.util.concurrent.Future<T> |
HttpAsyncRequester.execute(HttpAsyncRequestProducer requestProducer,
HttpAsyncResponseConsumer<T> responseConsumer,
NHttpClientConnection conn,
org.apache.http.protocol.HttpContext context) |
Initiates asynchronous HTTP request execution.
|
<T> java.util.concurrent.Future<T> |
HttpAsyncRequester.execute(HttpAsyncRequestProducer requestProducer,
HttpAsyncResponseConsumer<T> responseConsumer,
NHttpClientConnection conn,
org.apache.http.protocol.HttpContext context,
org.apache.http.concurrent.FutureCallback<T> callback) |
Initiates asynchronous HTTP request execution.
|
void |
AsyncNHttpClientHandler.inputReady(NHttpClientConnection conn,
ContentDecoder decoder) |
Deprecated.
|
void |
BufferingHttpClientHandler.inputReady(NHttpClientConnection conn,
ContentDecoder decoder) |
Deprecated.
|
void |
HttpAsyncRequestExecutor.inputReady(NHttpClientConnection conn,
ContentDecoder decoder) |
|
void |
ThrottlingHttpClientHandler.inputReady(NHttpClientConnection conn,
ContentDecoder decoder) |
Deprecated.
|
void |
AsyncNHttpClientHandler.outputReady(NHttpClientConnection conn,
ContentEncoder encoder) |
Deprecated.
|
void |
BufferingHttpClientHandler.outputReady(NHttpClientConnection conn,
ContentEncoder encoder) |
Deprecated.
|
void |
HttpAsyncRequestExecutor.outputReady(NHttpClientConnection conn,
ContentEncoder encoder) |
|
void |
ThrottlingHttpClientHandler.outputReady(NHttpClientConnection conn,
ContentEncoder encoder) |
Deprecated.
|
void |
AsyncNHttpClientHandler.requestReady(NHttpClientConnection conn) |
Deprecated.
|
void |
BufferingHttpClientHandler.requestReady(NHttpClientConnection conn) |
Deprecated.
|
void |
HttpAsyncRequestExecutor.requestReady(NHttpClientConnection conn) |
|
void |
ThrottlingHttpClientHandler.requestReady(NHttpClientConnection conn) |
Deprecated.
|
void |
AsyncNHttpClientHandler.responseReceived(NHttpClientConnection conn) |
Deprecated.
|
void |
BufferingHttpClientHandler.responseReceived(NHttpClientConnection conn) |
Deprecated.
|
void |
HttpAsyncRequestExecutor.responseReceived(NHttpClientConnection conn) |
|
void |
ThrottlingHttpClientHandler.responseReceived(NHttpClientConnection conn) |
Deprecated.
|
void |
AsyncNHttpClientHandler.timeout(NHttpClientConnection conn) |
Deprecated.
|
void |
BufferingHttpClientHandler.timeout(NHttpClientConnection conn) |
Deprecated.
|
void |
HttpAsyncRequestExecutor.timeout(NHttpClientConnection conn) |
|
void |
ThrottlingHttpClientHandler.timeout(NHttpClientConnection conn) |
Deprecated.
|
| Constructor | Description |
|---|---|
BasicAsyncClientExchangeHandler(HttpAsyncRequestProducer requestProducer,
HttpAsyncResponseConsumer<T> responseConsumer,
org.apache.http.concurrent.FutureCallback<T> callback,
org.apache.http.protocol.HttpContext localContext,
NHttpClientConnection conn,
org.apache.http.protocol.HttpProcessor httppocessor,
org.apache.http.ConnectionReuseStrategy connReuseStrategy) |
Creates new instance of BasicAsyncRequestExecutionHandler.
|
BasicAsyncClientExchangeHandler(HttpAsyncRequestProducer requestProducer,
HttpAsyncResponseConsumer<T> responseConsumer,
org.apache.http.protocol.HttpContext localContext,
NHttpClientConnection conn,
org.apache.http.protocol.HttpProcessor httppocessor) |
Creates new instance of BasicAsyncRequestExecutionHandler.
|
PipeliningClientExchangeHandler(java.util.List<? extends HttpAsyncRequestProducer> requestProducers,
java.util.List<? extends HttpAsyncResponseConsumer<T>> responseConsumers,
org.apache.http.concurrent.FutureCallback<java.util.List<T>> callback,
org.apache.http.protocol.HttpContext localContext,
NHttpClientConnection conn,
org.apache.http.protocol.HttpProcessor httppocessor,
org.apache.http.ConnectionReuseStrategy connReuseStrategy) |
Creates new instance of
PipeliningClientExchangeHandler. |
PipeliningClientExchangeHandler(java.util.List<? extends HttpAsyncRequestProducer> requestProducers,
java.util.List<? extends HttpAsyncResponseConsumer<T>> responseConsumers,
org.apache.http.protocol.HttpContext localContext,
NHttpClientConnection conn,
org.apache.http.protocol.HttpProcessor httppocessor) |
Creates new instance of
PipeliningClientExchangeHandler. |