Class ContinueProtocolHandler.ContinueListener
java.lang.Object
org.eclipse.jetty.client.AbstractResponseListener
org.eclipse.jetty.client.RetainingResponseListener
org.eclipse.jetty.client.ContinueProtocolHandler.ContinueListener
- All Implemented Interfaces:
EventListener
,Response.AsyncContentListener
,Response.BeginListener
,Response.CompleteListener
,Response.ContentListener
,Response.ContentSourceListener
,Response.FailureListener
,Response.HeaderListener
,Response.HeadersListener
,Response.Listener
,Response.ResponseListener
,Response.SuccessListener
- Enclosing class:
ContinueProtocolHandler
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
onComplete
(Result result) Callback method invoked when the request and the response have been processed, either successfully or not.void
Callback method invoked when the response has failed in the process of being receivedvoid
Callback method invoked when the whole response has been successfully received.Methods inherited from class org.eclipse.jetty.client.AbstractResponseListener
getContent, getContentAsInputStream, getContentAsString, getContentAsString, getContentAsString, getEncoding, getMaxLength, getMediaType, onContent, onHeaders
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.eclipse.jetty.client.Response.AsyncContentListener
onContentSource
Methods inherited from interface org.eclipse.jetty.client.Response.Listener
onBegin, onContent, onHeader
-
Constructor Details
-
ContinueListener
protected ContinueListener()
-
-
Method Details
-
onSuccess
Description copied from interface:Response.SuccessListener
Callback method invoked when the whole response has been successfully received.- Specified by:
onSuccess
in interfaceResponse.Listener
- Specified by:
onSuccess
in interfaceResponse.SuccessListener
- Overrides:
onSuccess
in classAbstractResponseListener
- Parameters:
response
- the response containing the response line data and the headers
-
onFailure
Description copied from interface:Response.FailureListener
Callback method invoked when the response has failed in the process of being received- Specified by:
onFailure
in interfaceResponse.FailureListener
- Specified by:
onFailure
in interfaceResponse.Listener
- Overrides:
onFailure
in classAbstractResponseListener
- Parameters:
response
- the response containing data up to the point the failure happenedfailure
- the failure happened
-
onComplete
Description copied from interface:Response.CompleteListener
Callback method invoked when the request and the response have been processed, either successfully or not.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)
orResponse.FailureListener.onFailure(Response, Throwable)
, and only when request indicates that it is completed.- Parameters:
result
- the result of the request / response exchange
-