protected class ContinueProtocolHandler.ContinueListener extends BufferingResponseListener
Response.Listener.Adapter
Modifier | Constructor and Description |
---|---|
protected |
ContinueProtocolHandler.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,
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, onHeaders
onBegin, onContent, onHeader
protected ContinueProtocolHandler.ContinueListener()
public void onSuccess(Response response)
Response.SuccessListener
onSuccess
in interface Response.SuccessListener
onSuccess
in class Response.Listener.Adapter
response
- the response containing the response line data and the headerspublic void onFailure(Response response, Throwable failure)
Response.FailureListener
onFailure
in interface Response.FailureListener
onFailure
in class Response.Listener.Adapter
response
- the response containing data up to the point the failure happenedfailure
- the failure happenedpublic void onComplete(Result result)
Response.CompleteListener
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.CompleteListener
onComplete
in class BufferingResponseListener
result
- the result of the request / response exchangeCopyright © 1995-2015 Webtide. All Rights Reserved.