Class AsyncMiddleManServlet.ProxyResponseListener

    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected ProxyResponseListener​(javax.servlet.http.HttpServletRequest clientRequest, javax.servlet.http.HttpServletResponse proxyResponse)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void failed​(java.lang.Throwable failure)
      Callback invoked when the operation fails.
      void onBegin​(Response serverResponse)
      Callback method invoked when the response line containing HTTP version, HTTP status code and reason has been received and parsed.
      void onComplete​(Result result)
      Callback method invoked when the request and the response have been processed, either successfully or not.
      void onContent​(Response serverResponse, java.nio.ByteBuffer content, Callback callback)
      Callback method invoked asynchronously when the response content has been received.
      void onHeaders​(Response serverResponse)
      Callback method invoked when the response headers have been received and parsed.
      void onSuccess​(Response serverResponse)
      Callback method invoked when the whole response has been successfully received.
      void succeeded()
      Callback invoked when the operation completes.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ProxyResponseListener

        protected ProxyResponseListener​(javax.servlet.http.HttpServletRequest clientRequest,
                                        javax.servlet.http.HttpServletResponse proxyResponse)