public class AsyncCompletionHandlerBase extends AsyncCompletionHandler<Response>
AsyncHandler
of type Response
AsyncHandler.STATE
Constructor and Description |
---|
AsyncCompletionHandlerBase() |
Modifier and Type | Method and Description |
---|---|
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.
|
onBodyPartReceived, onCompleted, onContentWriteCompleted, onContentWriteProgress, onHeadersReceived, onHeaderWriteCompleted, onStatusReceived
public Response onCompleted(Response response) throws Exception
onCompleted
in class AsyncCompletionHandler<Response>
response
- The Response
Future
Exception
- if something wrong happenspublic void onThrowable(Throwable t)
onThrowable
in interface AsyncHandler<Response>
onThrowable
in class AsyncCompletionHandler<Response>
t
- a Throwable
Copyright © 2014. All Rights Reserved.