Class AsyncMiddleManServlet.ProxyReader

    • Field Detail

      • buffer

        private final byte[] buffer
      • buffers

        private final java.util.List<java.nio.ByteBuffer> buffers
      • clientRequest

        private final javax.servlet.http.HttpServletRequest clientRequest
      • proxyResponse

        private final javax.servlet.http.HttpServletResponse proxyResponse
      • proxyRequest

        private final Request proxyRequest
      • contentLength

        private final int contentLength
      • expects100Continue

        private final boolean expects100Continue
      • length

        private int length
    • Constructor Detail

      • ProxyReader

        protected ProxyReader​(javax.servlet.http.HttpServletRequest clientRequest,
                              javax.servlet.http.HttpServletResponse proxyResponse,
                              Request proxyRequest,
                              DeferredContentProvider provider)
    • 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

        private void process​(java.nio.ByteBuffer content,
                             Callback callback,
                             boolean finished)
                      throws java.io.IOException
        Throws:
        java.io.IOException