Class HttpChannelListeners

    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      void onAfterDispatch​(Request request)
      Deprecated.
      Invoked just after the application returns from the first invocation.
      void onBeforeDispatch​(Request request)
      Deprecated.
      Invoked just before calling the application.
      void onComplete​(Request request)
      Deprecated.
      Invoked when the request and response processing are complete.
      void onDispatchFailure​(Request request, java.lang.Throwable failure)
      Deprecated.
      Invoked when the application threw an exception.
      void onRequestBegin​(Request request)
      Deprecated.
      Invoked just after the HTTP request line and headers have been parsed.
      void onRequestContent​(Request request, java.nio.ByteBuffer content)
      Deprecated.
      Invoked every time a request content chunk has been parsed, just before making it available to the application.
      void onRequestContentEnd​(Request request)
      Deprecated.
      Invoked when the end of the request content is detected.
      void onRequestEnd​(Request request)
      Deprecated.
      Invoked when the request has been fully parsed.
      void onRequestFailure​(Request request, java.lang.Throwable failure)
      Deprecated.
      Invoked when the request processing failed.
      void onRequestTrailers​(Request request)
      Deprecated.
      Invoked when the request trailers have been parsed.
      void onResponseBegin​(Request request)
      Deprecated.
      Invoked just before the response line is written to the network.
      void onResponseCommit​(Request request)
      Deprecated.
      Invoked just after the response is committed (that is, the response line, headers and possibly some content have been written to the network).
      void onResponseContent​(Request request, java.nio.ByteBuffer content)
      Deprecated.
      Invoked after a response content chunk has been written to the network.
      void onResponseEnd​(Request request)
      Deprecated.
      Invoked when the response has been fully written.
      void onResponseFailure​(Request request, java.lang.Throwable failure)
      Deprecated.
      Invoked when the response processing failed.
      • Methods inherited from class java.lang.Object

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

      • HttpChannelListeners

        public HttpChannelListeners​(java.util.Collection<HttpChannel.Listener> listeners)
        Deprecated.
    • Method Detail

      • onRequestBegin

        public void onRequestBegin​(Request request)
        Deprecated.
        Description copied from interface: HttpChannel.Listener
        Invoked just after the HTTP request line and headers have been parsed.
        Specified by:
        onRequestBegin in interface HttpChannel.Listener
        Parameters:
        request - the request object
      • onDispatchFailure

        public void onDispatchFailure​(Request request,
                                      java.lang.Throwable failure)
        Deprecated.
        Description copied from interface: HttpChannel.Listener
        Invoked when the application threw an exception.
        Specified by:
        onDispatchFailure in interface HttpChannel.Listener
        Parameters:
        request - the request object
        failure - the exception thrown by the application
      • onAfterDispatch

        public void onAfterDispatch​(Request request)
        Deprecated.
        Description copied from interface: HttpChannel.Listener
        Invoked just after the application returns from the first invocation.
        Specified by:
        onAfterDispatch in interface HttpChannel.Listener
        Parameters:
        request - the request object
      • onRequestContent

        public void onRequestContent​(Request request,
                                     java.nio.ByteBuffer content)
        Deprecated.
        Description copied from interface: HttpChannel.Listener
        Invoked every time a request content chunk has been parsed, just before making it available to the application.
        Specified by:
        onRequestContent in interface HttpChannel.Listener
        Parameters:
        request - the request object
        content - a slice of the request content chunk
      • onRequestFailure

        public void onRequestFailure​(Request request,
                                     java.lang.Throwable failure)
        Deprecated.
        Description copied from interface: HttpChannel.Listener
        Invoked when the request processing failed.
        Specified by:
        onRequestFailure in interface HttpChannel.Listener
        Parameters:
        request - the request object
        failure - the request failure
      • onResponseCommit

        public void onResponseCommit​(Request request)
        Deprecated.
        Description copied from interface: HttpChannel.Listener
        Invoked just after the response is committed (that is, the response line, headers and possibly some content have been written to the network).
        Specified by:
        onResponseCommit in interface HttpChannel.Listener
        Parameters:
        request - the request object
      • onResponseContent

        public void onResponseContent​(Request request,
                                      java.nio.ByteBuffer content)
        Deprecated.
        Description copied from interface: HttpChannel.Listener
        Invoked after a response content chunk has been written to the network.
        Specified by:
        onResponseContent in interface HttpChannel.Listener
        Parameters:
        request - the request object
        content - a slice of the response content chunk
      • onResponseFailure

        public void onResponseFailure​(Request request,
                                      java.lang.Throwable failure)
        Deprecated.
        Description copied from interface: HttpChannel.Listener
        Invoked when the response processing failed.
        Specified by:
        onResponseFailure in interface HttpChannel.Listener
        Parameters:
        request - the request object
        failure - the response failure
      • onComplete

        public void onComplete​(Request request)
        Deprecated.
        Description copied from interface: HttpChannel.Listener
        Invoked when the request and response processing are complete.
        Specified by:
        onComplete in interface HttpChannel.Listener
        Parameters:
        request - the request object