Class AsyncProxyServlet.StreamReader

  • All Implemented Interfaces:
    jakarta.servlet.ReadListener, java.util.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.InvocableCallback, 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
    • 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

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void failed​(java.lang.Throwable x)  
      void onAllDataRead()  
      void onDataAvailable()  
      void onError​(java.lang.Throwable t)  
      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 process()  
      • 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.thread.Invocable

        getInvocationType
    • Constructor Detail

      • 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 Detail

      • 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​(java.lang.Throwable t)
        Specified by:
        onError in interface jakarta.servlet.ReadListener
      • process

        protected org.eclipse.jetty.util.IteratingCallback.Action process()
                                                                   throws java.lang.Exception
        Specified by:
        process in class org.eclipse.jetty.util.IteratingCallback
        Throws:
        java.lang.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​(java.lang.Throwable x)
        Specified by:
        failed in interface org.eclipse.jetty.util.Callback
        Overrides:
        failed in class org.eclipse.jetty.util.IteratingCallback