Class AsyncMiddleManServlet.ProxyReader

  • All Implemented Interfaces:
    java.util.EventListener, javax.servlet.ReadListener, 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 javax.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 ProxyReader​(javax.servlet.http.HttpServletRequest clientRequest, javax.servlet.http.HttpServletResponse proxyResponse, 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 onAllDataRead()  
      protected void onCompleteFailure​(java.lang.Throwable x)  
      void onDataAvailable()  
      void onError​(java.lang.Throwable t)  
      protected org.eclipse.jetty.util.IteratingCallback.Action process()  
      • Methods inherited from class org.eclipse.jetty.util.IteratingCallback

        close, failed, isClosed, isFailed, isSucceeded, iterate, 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

      • ProxyReader

        protected ProxyReader​(javax.servlet.http.HttpServletRequest clientRequest,
                              javax.servlet.http.HttpServletResponse proxyResponse,
                              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 javax.servlet.ReadListener
      • onAllDataRead

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

        public void onError​(java.lang.Throwable t)
        Specified by:
        onError in interface javax.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
      • onCompleteFailure

        protected void onCompleteFailure​(java.lang.Throwable x)
        Overrides:
        onCompleteFailure in class org.eclipse.jetty.util.IteratingCallback