Package org.eclipse.jetty.client
Interface Response.CompleteListener
- All Superinterfaces:
EventListener
,Response.ResponseListener
- All Known Subinterfaces:
Response.Listener
- All Known Implementing Classes:
AsyncMiddleManServlet.ProxyResponseListener
,BufferingResponseListener
,CompletableResponseListener
,ContinueProtocolHandler.ContinueListener
,CoreClientUpgradeRequest
,FutureResponseListener
,InputStreamResponseListener
,JakartaClientUpgradeRequest
,JettyClientUpgradeRequest
,PathResponseListener
,ProxyHandler.ProxyResponseListener
,ProxyServlet.ProxyResponseListener
,RedirectProtocolHandler
- Enclosing interface:
- Response
Listener for the request and response completed event.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
onComplete
(Result result) Callback method invoked when the request and the response have been processed, either successfully or not.
-
Method Details
-
onComplete
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
-