Package org.eclipse.jetty.client.api
Interface Response.CompleteListener
-
- All Superinterfaces:
java.util.EventListener,Response.ResponseListener
- All Known Subinterfaces:
Response.Listener
- All Known Implementing Classes:
BufferingResponseListener,FutureResponseListener,InputStreamResponseListener,RedirectProtocolHandler,Response.Listener.Adapter,TimeoutCompleteListener,WebSocketUpgradeRequest
- Enclosing interface:
- Response
@Deprecated public static interface Response.CompleteListener extends Response.ResponseListener
Deprecated.This api is not supported anymore. Please do not use it.Listener for the request and response completed event.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description voidonComplete(Result result)Deprecated.Callback method invoked when the request and the response have been processed, either successfully or not.
-
-
-
Method Detail
-
onComplete
void onComplete(Result result)
Deprecated.Callback 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.- Parameters:
result- the result of the request / response exchange
-
-