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
        Method to invoke when the asynchronous sub-task fails, or to fail the overall asynchronous task and therefore terminate the iteration.

        Subclasses that override this method must always remember to call super.failed(Throwable).

        Eventually, IteratingCallback.onCompleteFailure(Throwable) is called, either by the caller thread or by the processing thread.

        Specified by:
        failed in interface Callback
        Overrides:
        failed in class IteratingCallback
        Parameters:
        x - the reason for the operation failure
        See Also:
        IteratingCallback.isFailed()