Class AsyncMiddleManServlet.ProxyResponseListener

java.lang.Object
org.eclipse.jetty.client.api.Response.Listener.Adapter
org.eclipse.jetty.proxy.AsyncMiddleManServlet.ProxyResponseListener
All Implemented Interfaces:
EventListener, org.eclipse.jetty.client.api.Response.AsyncContentListener, org.eclipse.jetty.client.api.Response.BeginListener, org.eclipse.jetty.client.api.Response.CompleteListener, org.eclipse.jetty.client.api.Response.ContentListener, org.eclipse.jetty.client.api.Response.DemandedContentListener, org.eclipse.jetty.client.api.Response.FailureListener, org.eclipse.jetty.client.api.Response.HeaderListener, org.eclipse.jetty.client.api.Response.HeadersListener, org.eclipse.jetty.client.api.Response.Listener, org.eclipse.jetty.client.api.Response.ResponseListener, org.eclipse.jetty.client.api.Response.SuccessListener, org.eclipse.jetty.util.Callback, org.eclipse.jetty.util.thread.Invocable
Enclosing class:
AsyncMiddleManServlet

protected class AsyncMiddleManServlet.ProxyResponseListener extends org.eclipse.jetty.client.api.Response.Listener.Adapter implements org.eclipse.jetty.util.Callback
  • Nested Class Summary

    Nested classes/interfaces inherited from interface org.eclipse.jetty.util.Callback

    org.eclipse.jetty.util.Callback.Completable, org.eclipse.jetty.util.Callback.Completing, org.eclipse.jetty.util.Callback.Nested

    Nested classes/interfaces inherited from interface org.eclipse.jetty.util.thread.Invocable

    org.eclipse.jetty.util.thread.Invocable.InvocationType, org.eclipse.jetty.util.thread.Invocable.ReadyTask, org.eclipse.jetty.util.thread.Invocable.Task

    Nested classes/interfaces inherited from interface org.eclipse.jetty.client.api.Response.Listener

    org.eclipse.jetty.client.api.Response.Listener.Adapter
  • Field Summary

    Fields inherited from interface org.eclipse.jetty.util.Callback

    NOOP

    Fields inherited from interface org.eclipse.jetty.util.thread.Invocable

    __nonBlocking
  • Constructor Summary

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

    Modifier and Type
    Method
    Description
    void
    failed(Throwable failure)
     
    void
    onBegin(org.eclipse.jetty.client.api.Response serverResponse)
     
    void
    onComplete(org.eclipse.jetty.client.api.Result result)
     
    void
    onContent(org.eclipse.jetty.client.api.Response serverResponse, ByteBuffer content, org.eclipse.jetty.util.Callback callback)
     
    void
    onHeaders(org.eclipse.jetty.client.api.Response serverResponse)
     
    void
    onSuccess(org.eclipse.jetty.client.api.Response serverResponse)
     
    void
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.eclipse.jetty.util.Callback

    completeWith

    Methods inherited from interface org.eclipse.jetty.util.thread.Invocable

    getInvocationType

    Methods inherited from interface org.eclipse.jetty.client.api.Response.AsyncContentListener

    onContent

    Methods inherited from interface org.eclipse.jetty.client.api.Response.DemandedContentListener

    onBeforeContent

    Methods inherited from interface org.eclipse.jetty.client.api.Response.Listener

    onContent, onFailure, onHeader
  • Constructor Details

    • ProxyResponseListener

      protected ProxyResponseListener(jakarta.servlet.http.HttpServletRequest clientRequest, jakarta.servlet.http.HttpServletResponse proxyResponse)
  • Method Details

    • onBegin

      public void onBegin(org.eclipse.jetty.client.api.Response serverResponse)
      Specified by:
      onBegin in interface org.eclipse.jetty.client.api.Response.BeginListener
      Specified by:
      onBegin in interface org.eclipse.jetty.client.api.Response.Listener
    • onHeaders

      public void onHeaders(org.eclipse.jetty.client.api.Response serverResponse)
      Specified by:
      onHeaders in interface org.eclipse.jetty.client.api.Response.HeadersListener
      Specified by:
      onHeaders in interface org.eclipse.jetty.client.api.Response.Listener
    • onContent

      public void onContent(org.eclipse.jetty.client.api.Response serverResponse, ByteBuffer content, org.eclipse.jetty.util.Callback callback)
      Specified by:
      onContent in interface org.eclipse.jetty.client.api.Response.AsyncContentListener
      Specified by:
      onContent in interface org.eclipse.jetty.client.api.Response.ContentListener
    • onSuccess

      public void onSuccess(org.eclipse.jetty.client.api.Response serverResponse)
      Specified by:
      onSuccess in interface org.eclipse.jetty.client.api.Response.Listener
      Specified by:
      onSuccess in interface org.eclipse.jetty.client.api.Response.SuccessListener
    • onComplete

      public void onComplete(org.eclipse.jetty.client.api.Result result)
      Specified by:
      onComplete in interface org.eclipse.jetty.client.api.Response.CompleteListener
      Specified by:
      onComplete in interface org.eclipse.jetty.client.api.Response.Listener
    • succeeded

      public void succeeded()
      Specified by:
      succeeded in interface org.eclipse.jetty.util.Callback
    • failed

      public void failed(Throwable failure)
      Specified by:
      failed in interface org.eclipse.jetty.util.Callback