Uses of Interface
com.ning.http.client.ProgressAsyncHandler

Packages that use ProgressAsyncHandler
com.ning.http.client   
com.ning.http.client.listener   
 

Uses of ProgressAsyncHandler in com.ning.http.client
 

Classes in com.ning.http.client that implement ProgressAsyncHandler
 class AsyncCompletionHandler<T>
          An AsyncHandler augmented with an AsyncCompletionHandler.onCompleted(Response) convenience method which gets called when the Response has been fully received.
 class AsyncCompletionHandlerBase
          Simple AsyncHandler of type Response NOTE: Sending another asynchronous request from an AsyncHandler must be done using another thread to avoid potential deadlock inside the AsyncHttpProvider The recommended way is to use the ExecutorService from the AsyncHttpClientConfig: &#64;Override public Response onCompleted(Response response) throws Exception &#123; asyncHttpClient.getConfig().executorService().execute(new Runnable() &#123; public void run() &#123; asyncHttpClient.prepareGet(...); &#125; &#125;); return response; &#125;
 

Uses of ProgressAsyncHandler in com.ning.http.client.listener
 

Classes in com.ning.http.client.listener that implement ProgressAsyncHandler
 class TransferCompletionHandler
          A AsyncHandler that can be used to notify a set of TransferListener AsyncHttpClient client = new AsyncHttpClient(); TransferCompletionHandler tl = new TransferCompletionHandler(); tl.addTransferListener(new TransferListener() { public void onRequestHeadersSent(FluentCaseInsensitiveStringsMap headers) { } public void onResponseHeadersReceived(FluentCaseInsensitiveStringsMap headers) { } public void onBytesReceived(ByteBuffer buffer) { } public void onBytesSent(ByteBuffer buffer) { } public void onRequestResponseCompleted() { } public void onThrowable(Throwable t) { } }); Response response = httpClient.prepareGet("http://...").execute(tl).get();
 



Copyright © 2010. All Rights Reserved.