Class AsyncJSONTransport.AbstractReader

    • Method Detail

      • onDataAvailable

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

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

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

        protected void finish​(java.util.List<ServerMessage.Mutable> messages)
                       throws java.io.IOException
        Throws:
        java.io.IOException
      • finish

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

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