Interface Request.Listener

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Interface Description
      static class  Request.Listener.Adapter
      Deprecated.
      The Eclipse Jetty and Apache Felix Http Jetty packages are no longer supported.
    • Method Summary

      All Methods Instance Methods Default Methods Deprecated Methods 
      Modifier and Type Method Description
      default void onBegin​(Request request)
      Deprecated.
      Callback method invoked when the request begins being processed in order to be sent.
      default void onCommit​(Request request)
      Deprecated.
      Callback method invoked when the request headers (and perhaps small content) have been sent.
      default void onContent​(Request request, java.nio.ByteBuffer content)
      Deprecated.
      Callback method invoked when a chunk of request content has been sent successfully.
      default void onFailure​(Request request, java.lang.Throwable failure)
      Deprecated.
      Callback method invoked when the request has failed to be sent
      default void onHeaders​(Request request)
      Deprecated.
      Callback method invoked when the request headers (and perhaps small content) are ready to be sent.
      default void onQueued​(Request request)
      Deprecated.
      Callback method invoked when the request is queued, waiting to be sent
      default void onSuccess​(Request request)
      Deprecated.
      Callback method invoked when the request has been successfully sent.
    • Method Detail

      • onQueued

        default void onQueued​(Request request)
        Deprecated.
        Description copied from interface: Request.QueuedListener
        Callback method invoked when the request is queued, waiting to be sent
        Specified by:
        onQueued in interface Request.QueuedListener
        Parameters:
        request - the request being queued
      • onBegin

        default void onBegin​(Request request)
        Deprecated.
        Description copied from interface: Request.BeginListener
        Callback method invoked when the request begins being processed in order to be sent. This is the last opportunity to modify the request.
        Specified by:
        onBegin in interface Request.BeginListener
        Parameters:
        request - the request that begins being processed
      • onHeaders

        default void onHeaders​(Request request)
        Deprecated.
        Description copied from interface: Request.HeadersListener
        Callback method invoked when the request headers (and perhaps small content) are ready to be sent. The request has been converted into bytes, but not yet sent to the server, and further modifications to the request may have no effect.
        Specified by:
        onHeaders in interface Request.HeadersListener
        Parameters:
        request - the request that is about to be committed
      • onCommit

        default void onCommit​(Request request)
        Deprecated.
        Description copied from interface: Request.CommitListener
        Callback method invoked when the request headers (and perhaps small content) have been sent. The request is now committed, and in transit to the server, and further modifications to the request may have no effect.
        Specified by:
        onCommit in interface Request.CommitListener
        Parameters:
        request - the request that has been committed
      • onContent

        default void onContent​(Request request,
                               java.nio.ByteBuffer content)
        Deprecated.
        Description copied from interface: Request.ContentListener
        Callback method invoked when a chunk of request content has been sent successfully. Changes to bytes in the given buffer have no effect, as the content has already been sent.
        Specified by:
        onContent in interface Request.ContentListener
        Parameters:
        request - the request that has been committed
        content - the content
      • onFailure

        default void onFailure​(Request request,
                               java.lang.Throwable failure)
        Deprecated.
        Description copied from interface: Request.FailureListener
        Callback method invoked when the request has failed to be sent
        Specified by:
        onFailure in interface Request.FailureListener
        Parameters:
        request - the request that failed
        failure - the failure