Class AsyncMiddleManServlet.ProxyReader

java.lang.Object
org.eclipse.jetty.util.IteratingCallback
org.eclipse.jetty.ee11.proxy.AsyncMiddleManServlet.ProxyReader
All Implemented Interfaces:
jakarta.servlet.ReadListener, EventListener, org.eclipse.jetty.util.Callback, org.eclipse.jetty.util.thread.Invocable
Enclosing class:
AsyncMiddleManServlet

protected class AsyncMiddleManServlet.ProxyReader extends org.eclipse.jetty.util.IteratingCallback implements jakarta.servlet.ReadListener
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.eclipse.jetty.util.IteratingCallback

    org.eclipse.jetty.util.IteratingCallback.Action

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

    org.eclipse.jetty.util.Callback.Combination, 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.Callable, org.eclipse.jetty.util.thread.Invocable.InvocationType, org.eclipse.jetty.util.thread.Invocable.ReadyTask, org.eclipse.jetty.util.thread.Invocable.Task
  • Field Summary

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

    NOOP, NOT_CALLED

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

    __nonBlocking
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    ProxyReader(jakarta.servlet.http.HttpServletRequest clientRequest, jakarta.servlet.http.HttpServletResponse proxyResponse, org.eclipse.jetty.client.Request proxyRequest, org.eclipse.jetty.client.AsyncRequestContent content)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.eclipse.jetty.util.thread.Invocable.InvocationType
     
    void
     
    void
     
    void
     
    protected void
     
    protected org.eclipse.jetty.util.IteratingCallback.Action
     

    Methods inherited from class org.eclipse.jetty.util.IteratingCallback

    abort, close, failed, isAborted, isClosed, isFailed, isSucceeded, iterate, onAborted, onCompleted, onCompleteFailure, onCompleteSuccess, onSuccess, reset, succeeded, toString

    Methods inherited from class Object

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

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

    completeWith
  • Constructor Details

    • ProxyReader

      protected ProxyReader(jakarta.servlet.http.HttpServletRequest clientRequest, jakarta.servlet.http.HttpServletResponse proxyResponse, org.eclipse.jetty.client.Request proxyRequest, org.eclipse.jetty.client.AsyncRequestContent content)
  • Method Details

    • onDataAvailable

      public void onDataAvailable()
      Specified by:
      onDataAvailable in interface jakarta.servlet.ReadListener
    • onAllDataRead

      public void onAllDataRead() throws IOException
      Specified by:
      onAllDataRead in interface jakarta.servlet.ReadListener
      Throws:
      IOException
    • onError

      public void onError(Throwable t)
      Specified by:
      onError in interface jakarta.servlet.ReadListener
    • process

      protected org.eclipse.jetty.util.IteratingCallback.Action process() throws Exception
      Specified by:
      process in class org.eclipse.jetty.util.IteratingCallback
      Throws:
      Exception
    • onFailure

      protected void onFailure(Throwable x)
      Overrides:
      onFailure in class org.eclipse.jetty.util.IteratingCallback
    • getInvocationType

      public org.eclipse.jetty.util.thread.Invocable.InvocationType getInvocationType()
      Specified by:
      getInvocationType in interface org.eclipse.jetty.util.thread.Invocable