protected class ContinueProtocolHandler.ContinueListener extends BufferingResponseListener
Response.Listener.Adapter| Modifier | Constructor and Description |
|---|---|
protected |
ContinueListener() |
| Modifier and Type | Method and Description |
|---|---|
void |
onComplete(Result result)
Callback method invoked when the request and the response have been processed,
either successfully or not.
|
void |
onFailure(Response response,
java.lang.Throwable failure)
Callback method invoked when the response has failed in the process of being received
|
void |
onSuccess(Response response)
Callback method invoked when the whole response has been successfully received.
|
getContent, getContentAsInputStream, getContentAsString, getContentAsString, getContentAsString, getEncoding, getMediaType, onContent, onHeadersclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitonBegin, onHeaderonContentonContentonBeforeContentpublic void onSuccess(Response response)
Response.SuccessListenerresponse - the response containing the response line data and the headerspublic void onFailure(Response response, java.lang.Throwable failure)
Response.FailureListenerresponse - the response containing data up to the point the failure happenedfailure - the failure happenedpublic void onComplete(Result result)
Response.CompleteListener
The result parameter contains the request, the response, and eventual failures.
Requests may complete after response, for example in case of big uploads that are
discarded or read asynchronously by the server.
This method is always invoked after Response.SuccessListener.onSuccess(Response) or
Response.FailureListener.onFailure(Response, Throwable), and only when request indicates that
it is completed.
onComplete in interface Response.CompleteListeneronComplete in interface Response.ListeneronComplete in class BufferingResponseListenerresult - the result of the request / response exchange