static class HttpWorker.HttpAsyncHandler extends com.ning.http.client.AsyncCompletionHandler<ResponseOnSingeRequest>
| Modifier and Type | Field and Description |
|---|---|
private HttpWorker |
httpWorker
The http worker.
|
| Constructor and Description |
|---|
HttpAsyncHandler(HttpWorker httpWorker)
Instantiates a new http async handler.
|
| Modifier and Type | Method and Description |
|---|---|
ResponseOnSingeRequest |
onCompleted(com.ning.http.client.Response response) |
void |
onThrowable(java.lang.Throwable t) |
private final HttpWorker httpWorker
public HttpAsyncHandler(HttpWorker httpWorker)
httpWorker - the http workerpublic ResponseOnSingeRequest onCompleted(com.ning.http.client.Response response) throws java.lang.Exception
onCompleted in class com.ning.http.client.AsyncCompletionHandler<ResponseOnSingeRequest>java.lang.Exceptionpublic void onThrowable(java.lang.Throwable t)
onThrowable in interface com.ning.http.client.AsyncHandler<ResponseOnSingeRequest>onThrowable in class com.ning.http.client.AsyncCompletionHandler<ResponseOnSingeRequest>