Class AsyncProxyServlet.StreamReader

    • Constructor Detail

      • StreamReader

        protected StreamReader​(javax.servlet.http.HttpServletRequest request,
                               javax.servlet.http.HttpServletResponse response,
                               Request proxyRequest,
                               DeferredContentProvider provider)
    • Method Detail

      • onDataAvailable

        public void onDataAvailable()
                             throws java.io.IOException
        Specified by:
        onDataAvailable in interface javax.servlet.ReadListener
        Throws:
        java.io.IOException
      • 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
      • onRequestContent

        protected void onRequestContent​(javax.servlet.http.HttpServletRequest request,
                                        Request proxyRequest,
                                        DeferredContentProvider provider,
                                        byte[] buffer,
                                        int offset,
                                        int length,
                                        Callback callback)
      • failed

        public void failed​(java.lang.Throwable x)
        Description copied from class: IteratingCallback
        Invoked when the sub task fails. Subclasses that override this method must always remember to call super.failed(Throwable).
        Specified by:
        failed in interface Callback
        Overrides:
        failed in class IteratingCallback
        Parameters:
        x - the reason for the operation failure