public class

AsyncCompletionHandlerBase

extends AsyncCompletionHandler<T>
java.lang.Object
   ↳ com.ning.http.client.AsyncCompletionHandler<T>
     ↳ com.ning.http.client.AsyncCompletionHandlerBase
Known Direct Subclasses

Class Overview

Simple AsyncHandler of type Response

Summary

Public Constructors
AsyncCompletionHandlerBase()
Public Methods
Response onCompleted(Response response)
Invoked once the HTTP response processing is finished.
void onThrowable(Throwable t)
Invoked when an unexpected exception occurs during the processing of the response.
[Expand]
Inherited Methods
From class com.ning.http.client.AsyncCompletionHandler
From class java.lang.Object
From interface com.ning.http.client.AsyncHandler
From interface com.ning.http.client.ProgressAsyncHandler

Public Constructors

public AsyncCompletionHandlerBase ()

Public Methods

public Response onCompleted (Response response)

Invoked once the HTTP response processing is finished.

Gets always invoked as last callback method.

Parameters
response The Response
Returns
  • T Value that will be returned by the associated java.util.concurrent.Future
Throws
Exception

public void onThrowable (Throwable t)

Invoked when an unexpected exception occurs during the processing of the response. The exception may have been produced by implementation of onXXXReceived method invocation.

Parameters
t a Throwable