Class AsyncProxyServlet.StreamWriter

  • All Implemented Interfaces:
    java.util.EventListener, javax.servlet.WriteListener
    Enclosing class:
    AsyncProxyServlet

    protected class AsyncProxyServlet.StreamWriter
    extends java.lang.Object
    implements javax.servlet.WriteListener
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected StreamWriter​(javax.servlet.http.HttpServletRequest request, Response proxyResponse)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void complete()  
      protected void data​(byte[] bytes, int offset, int length, Callback callback)  
      void onError​(java.lang.Throwable failure)  
      void onWritePossible()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • StreamWriter

        protected StreamWriter​(javax.servlet.http.HttpServletRequest request,
                               Response proxyResponse)
    • Method Detail

      • data

        protected void data​(byte[] bytes,
                            int offset,
                            int length,
                            Callback callback)
      • onWritePossible

        public void onWritePossible()
                             throws java.io.IOException
        Specified by:
        onWritePossible in interface javax.servlet.WriteListener
        Throws:
        java.io.IOException
      • complete

        protected void complete()
      • onError

        public void onError​(java.lang.Throwable failure)
        Specified by:
        onError in interface javax.servlet.WriteListener