public class AsyncCompletionHandler
extends com.ning.http.client.AsyncCompletionHandlerBase
| Constructor and Description |
|---|
AsyncCompletionHandler(AsyncHandler<RestResponse> responseHandler) |
| Modifier and Type | Method and Description |
|---|---|
com.ning.http.client.AsyncHandler.STATE |
onBodyPartReceived(com.ning.http.client.HttpResponseBodyPart content) |
com.ning.http.client.Response |
onCompleted(com.ning.http.client.Response response) |
com.ning.http.client.AsyncHandler.STATE |
onHeadersReceived(com.ning.http.client.HttpResponseHeaders headers) |
com.ning.http.client.AsyncHandler.STATE |
onStatusReceived(com.ning.http.client.HttpResponseStatus status) |
void |
onThrowable(java.lang.Throwable t) |
public AsyncCompletionHandler(AsyncHandler<RestResponse> responseHandler)
public com.ning.http.client.AsyncHandler.STATE onHeadersReceived(com.ning.http.client.HttpResponseHeaders headers)
throws java.lang.Exception
onHeadersReceived in interface com.ning.http.client.AsyncHandler<com.ning.http.client.Response>onHeadersReceived in class com.ning.http.client.AsyncCompletionHandler<com.ning.http.client.Response>java.lang.Exceptionpublic com.ning.http.client.AsyncHandler.STATE onBodyPartReceived(com.ning.http.client.HttpResponseBodyPart content)
throws java.lang.Exception
onBodyPartReceived in interface com.ning.http.client.AsyncHandler<com.ning.http.client.Response>onBodyPartReceived in class com.ning.http.client.AsyncCompletionHandler<com.ning.http.client.Response>java.lang.Exceptionpublic com.ning.http.client.AsyncHandler.STATE onStatusReceived(com.ning.http.client.HttpResponseStatus status)
throws java.lang.Exception
onStatusReceived in interface com.ning.http.client.AsyncHandler<com.ning.http.client.Response>onStatusReceived in class com.ning.http.client.AsyncCompletionHandler<com.ning.http.client.Response>java.lang.Exceptionpublic com.ning.http.client.Response onCompleted(com.ning.http.client.Response response)
throws java.lang.Exception
onCompleted in class com.ning.http.client.AsyncCompletionHandlerBasejava.lang.Exceptionpublic void onThrowable(java.lang.Throwable t)
onThrowable in interface com.ning.http.client.AsyncHandler<com.ning.http.client.Response>onThrowable in class com.ning.http.client.AsyncCompletionHandlerBaseCopyright © 2021. All Rights Reserved.