org.apache.http.nio.protocol
Class HttpAsyncRequestExecutor

java.lang.Object
  extended by org.apache.http.nio.protocol.HttpAsyncRequestExecutor

@Immutable
public class HttpAsyncRequestExecutor
extends Object

Since:
4.2

Constructor Summary
HttpAsyncRequestExecutor(HttpProcessor httppocessor, ConnectionReuseStrategy reuseStrategy, HttpParams params)
           
 
Method Summary
<T,E extends PoolEntry<HttpHost,NHttpClientConnection>>
Future<T>
execute(HttpAsyncRequestProducer requestProducer, HttpAsyncResponseConsumer<T> responseConsumer, ConnPool<HttpHost,E> connPool)
           
<T,E extends PoolEntry<HttpHost,NHttpClientConnection>>
Future<T>
execute(HttpAsyncRequestProducer requestProducer, HttpAsyncResponseConsumer<T> responseConsumer, ConnPool<HttpHost,E> connPool, HttpContext context)
           
<T,E extends PoolEntry<HttpHost,NHttpClientConnection>>
Future<T>
execute(HttpAsyncRequestProducer requestProducer, HttpAsyncResponseConsumer<T> responseConsumer, ConnPool<HttpHost,E> connPool, HttpContext context, FutureCallback<T> callback)
           
<T> Future<T>
execute(HttpAsyncRequestProducer requestProducer, HttpAsyncResponseConsumer<T> responseConsumer, NHttpClientConnection conn)
           
<T> Future<T>
execute(HttpAsyncRequestProducer requestProducer, HttpAsyncResponseConsumer<T> responseConsumer, NHttpClientConnection conn, HttpContext context)
           
<T> Future<T>
execute(HttpAsyncRequestProducer requestProducer, HttpAsyncResponseConsumer<T> responseConsumer, NHttpClientConnection conn, HttpContext context, FutureCallback<T> callback)
           
protected  void onException(Exception ex)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HttpAsyncRequestExecutor

public HttpAsyncRequestExecutor(HttpProcessor httppocessor,
                                ConnectionReuseStrategy reuseStrategy,
                                HttpParams params)
Method Detail

execute

public <T> Future<T> execute(HttpAsyncRequestProducer requestProducer,
                             HttpAsyncResponseConsumer<T> responseConsumer,
                             NHttpClientConnection conn,
                             HttpContext context,
                             FutureCallback<T> callback)

execute

public <T> Future<T> execute(HttpAsyncRequestProducer requestProducer,
                             HttpAsyncResponseConsumer<T> responseConsumer,
                             NHttpClientConnection conn,
                             HttpContext context)

execute

public <T> Future<T> execute(HttpAsyncRequestProducer requestProducer,
                             HttpAsyncResponseConsumer<T> responseConsumer,
                             NHttpClientConnection conn)

execute

public <T,E extends PoolEntry<HttpHost,NHttpClientConnection>> Future<T> execute(HttpAsyncRequestProducer requestProducer,
                                                                                 HttpAsyncResponseConsumer<T> responseConsumer,
                                                                                 ConnPool<HttpHost,E> connPool,
                                                                                 HttpContext context,
                                                                                 FutureCallback<T> callback)

execute

public <T,E extends PoolEntry<HttpHost,NHttpClientConnection>> Future<T> execute(HttpAsyncRequestProducer requestProducer,
                                                                                 HttpAsyncResponseConsumer<T> responseConsumer,
                                                                                 ConnPool<HttpHost,E> connPool,
                                                                                 HttpContext context)

execute

public <T,E extends PoolEntry<HttpHost,NHttpClientConnection>> Future<T> execute(HttpAsyncRequestProducer requestProducer,
                                                                                 HttpAsyncResponseConsumer<T> responseConsumer,
                                                                                 ConnPool<HttpHost,E> connPool)

onException

protected void onException(Exception ex)


Copyright © 2005-2011 The Apache Software Foundation. All Rights Reserved.