Package org.eclipse.jetty.client
Class ContinueProtocolHandler.ContinueListener
- java.lang.Object
-
- org.eclipse.jetty.client.api.Response.Listener.Adapter
-
- org.eclipse.jetty.client.util.BufferingResponseListener
-
- org.eclipse.jetty.client.ContinueProtocolHandler.ContinueListener
-
- All Implemented Interfaces:
java.util.EventListener,Response.AsyncContentListener,Response.BeginListener,Response.CompleteListener,Response.ContentListener,Response.DemandedContentListener,Response.FailureListener,Response.HeaderListener,Response.HeadersListener,Response.Listener,Response.ResponseListener,Response.SuccessListener
- Enclosing class:
- ContinueProtocolHandler
protected class ContinueProtocolHandler.ContinueListener extends BufferingResponseListener
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.eclipse.jetty.client.api.Response.Listener
Response.Listener.Adapter
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedContinueListener()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidonComplete(Result result)Callback method invoked when the request and the response have been processed, either successfully or not.voidonFailure(Response response, java.lang.Throwable failure)Callback method invoked when the response has failed in the process of being receivedvoidonSuccess(Response response)Callback method invoked when the whole response has been successfully received.-
Methods inherited from class org.eclipse.jetty.client.util.BufferingResponseListener
getContent, getContentAsInputStream, getContentAsString, getContentAsString, getContentAsString, getEncoding, 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.api.Response.AsyncContentListener
onContent
-
Methods inherited from interface org.eclipse.jetty.client.api.Response.ContentListener
onContent
-
Methods inherited from interface org.eclipse.jetty.client.api.Response.DemandedContentListener
onBeforeContent
-
Methods inherited from interface org.eclipse.jetty.client.api.Response.Listener
onBegin, onHeader
-
-
-
-
Method Detail
-
onSuccess
public void onSuccess(Response response)
Description copied from interface:Response.SuccessListenerCallback method invoked when the whole response has been successfully received.- Parameters:
response- the response containing the response line data and the headers
-
onFailure
public void onFailure(Response response, java.lang.Throwable failure)
Description copied from interface:Response.FailureListenerCallback method invoked when the response has failed in the process of being received- Parameters:
response- the response containing data up to the point the failure happenedfailure- the failure happened
-
onComplete
public void onComplete(Result result)
Description copied from interface:Response.CompleteListenerCallback method invoked when the request and the response have been processed, either successfully or not.The
resultparameter 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.- Specified by:
onCompletein interfaceResponse.CompleteListener- Specified by:
onCompletein interfaceResponse.Listener- Specified by:
onCompletein classBufferingResponseListener- Parameters:
result- the result of the request / response exchange
-
-