Class AsyncProxyServlet.StreamReader

    • Constructor Detail

      • StreamReader

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

      • onDataAvailable

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

        public void onAllDataRead()
        Specified by:
        onAllDataRead in interface javax.servlet.ReadListener
      • 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,
                                        AsyncRequestContent content,
                                        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