| Package | Description | 
|---|---|
| com.ning.http.client | |
| com.ning.http.client.listener | 
| Modifier and Type | Class and Description | 
|---|---|
| class  | AsyncCompletionHandler<T>An  AsyncHandleraugmented with anAsyncCompletionHandler.onCompleted(Response)convenience method which gets called
 when theResponseprocessing is finished. | 
| class  | AsyncCompletionHandlerBaseSimple  AsyncHandlerof typeResponse | 
| Modifier and Type | Class and Description | 
|---|---|
| class  | TransferCompletionHandlerA  AsyncHandlerthat can be used to notify a set ofTransferListenerAsyncHttpClient 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 © 2015. All rights reserved.