org.apache.http.impl.nio.client
Class CloseableHttpAsyncClient

java.lang.Object
  extended by org.apache.http.impl.nio.client.CloseableHttpAsyncClient
All Implemented Interfaces:
Closeable, HttpAsyncClient

public abstract class CloseableHttpAsyncClient
extends Object
implements HttpAsyncClient, Closeable


Constructor Summary
CloseableHttpAsyncClient()
           
 
Method Summary
<T> Future<T>
execute(org.apache.http.nio.protocol.HttpAsyncRequestProducer requestProducer, org.apache.http.nio.protocol.HttpAsyncResponseConsumer<T> responseConsumer, FutureCallback<T> callback)
           
 Future<HttpResponse> execute(HttpHost target, HttpRequest request, FutureCallback<HttpResponse> callback)
           
 Future<HttpResponse> execute(HttpHost target, HttpRequest request, HttpContext context, FutureCallback<HttpResponse> callback)
           
 Future<HttpResponse> execute(HttpUriRequest request, FutureCallback<HttpResponse> callback)
           
 Future<HttpResponse> execute(HttpUriRequest request, HttpContext context, FutureCallback<HttpResponse> callback)
           
abstract  void start()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.http.nio.client.HttpAsyncClient
execute, getConnectionManager, getParams, getStatus, shutdown
 
Methods inherited from interface java.io.Closeable
close
 

Constructor Detail

CloseableHttpAsyncClient

public CloseableHttpAsyncClient()
Method Detail

start

public abstract void start()
Specified by:
start in interface HttpAsyncClient

execute

public <T> Future<T> execute(org.apache.http.nio.protocol.HttpAsyncRequestProducer requestProducer,
                             org.apache.http.nio.protocol.HttpAsyncResponseConsumer<T> responseConsumer,
                             FutureCallback<T> callback)
Specified by:
execute in interface HttpAsyncClient

execute

public Future<HttpResponse> execute(HttpHost target,
                                    HttpRequest request,
                                    HttpContext context,
                                    FutureCallback<HttpResponse> callback)
Specified by:
execute in interface HttpAsyncClient

execute

public Future<HttpResponse> execute(HttpHost target,
                                    HttpRequest request,
                                    FutureCallback<HttpResponse> callback)
Specified by:
execute in interface HttpAsyncClient

execute

public Future<HttpResponse> execute(HttpUriRequest request,
                                    FutureCallback<HttpResponse> callback)
Specified by:
execute in interface HttpAsyncClient

execute

public Future<HttpResponse> execute(HttpUriRequest request,
                                    HttpContext context,
                                    FutureCallback<HttpResponse> callback)
Specified by:
execute in interface HttpAsyncClient


Copyright © 2010-2013 The Apache Software Foundation. All Rights Reserved.