Interface Response.FailureListener

All Superinterfaces:
EventListener, Response.ResponseListener
All Known Subinterfaces:
Response.Listener
All Known Implementing Classes:
AsyncMiddleManServlet.ProxyResponseListener, BufferingResponseListener, ContinueProtocolHandler.ContinueListener, FutureResponseListener, InputStreamResponseListener, ProxyServlet.ProxyResponseListener, RedirectProtocolHandler, Response.Listener.Adapter
Enclosing interface:
Response

public static interface Response.FailureListener extends Response.ResponseListener
Listener for the response failure event.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onFailure(Response response, Throwable failure)
    Callback method invoked when the response has failed in the process of being received
  • Method Details

    • onFailure

      void onFailure(Response response, Throwable failure)
      Callback 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 happened
      failure - the failure happened