Class AsyncProxyServlet.StreamReader

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

protected class AsyncProxyServlet.StreamReader 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.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
  • 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
    StreamReader(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, org.eclipse.jetty.client.api.Request proxyRequest, org.eclipse.jetty.client.util.AsyncRequestContent content)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    void
     
    void
     
    void
     
    protected void
    onRequestContent(jakarta.servlet.http.HttpServletRequest request, org.eclipse.jetty.client.api.Request proxyRequest, org.eclipse.jetty.client.util.AsyncRequestContent content, byte[] buffer, int offset, int length, org.eclipse.jetty.util.Callback callback)
     
    protected org.eclipse.jetty.util.IteratingCallback.Action
     

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

    close, isClosed, isFailed, isSucceeded, iterate, onCompleteFailure, onCompleteSuccess, reset, succeeded, toString

    Methods inherited from class java.lang.Object

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

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

    completeWith

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

    getInvocationType
  • Constructor Details

    • StreamReader

      protected StreamReader(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, org.eclipse.jetty.client.api.Request proxyRequest, org.eclipse.jetty.client.util.AsyncRequestContent content)
  • Method Details

    • onDataAvailable

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

      public void onAllDataRead()
      Specified by:
      onAllDataRead in interface jakarta.servlet.ReadListener
    • 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
    • onRequestContent

      protected void onRequestContent(jakarta.servlet.http.HttpServletRequest request, org.eclipse.jetty.client.api.Request proxyRequest, org.eclipse.jetty.client.util.AsyncRequestContent content, byte[] buffer, int offset, int length, org.eclipse.jetty.util.Callback callback)
    • failed

      public void failed(Throwable x)
      Specified by:
      failed in interface org.eclipse.jetty.util.Callback
      Overrides:
      failed in class org.eclipse.jetty.util.IteratingCallback