Class AsyncJSONTransport.AbstractReader

    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected javax.servlet.AsyncContext asyncContext  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected AbstractReader​(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, javax.servlet.AsyncContext asyncContext)  
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      protected abstract void append​(byte[] buffer, int offset, int length)  
      protected abstract java.lang.String finish()  
      void onAllDataRead()  
      void onDataAvailable()  
      void onError​(java.lang.Throwable throwable)  
      protected void process​(java.lang.String json)  
      • Methods inherited from class java.lang.Object

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

      • asyncContext

        protected final javax.servlet.AsyncContext asyncContext
    • Constructor Detail

      • AbstractReader

        protected AbstractReader​(javax.servlet.http.HttpServletRequest request,
                                 javax.servlet.http.HttpServletResponse response,
                                 javax.servlet.AsyncContext asyncContext)
    • Method Detail

      • onDataAvailable

        public void onDataAvailable()
                             throws java.io.IOException
        Specified by:
        onDataAvailable in interface javax.servlet.ReadListener
        Throws:
        java.io.IOException
      • append

        protected abstract void append​(byte[] buffer,
                                       int offset,
                                       int length)
      • onAllDataRead

        public void onAllDataRead()
                           throws java.io.IOException
        Specified by:
        onAllDataRead in interface javax.servlet.ReadListener
        Throws:
        java.io.IOException
      • finish

        protected abstract java.lang.String finish()
      • process

        protected void process​(java.lang.String json)
                        throws java.io.IOException
        Throws:
        java.io.IOException
      • onError

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