Class AsyncJSONTransport.AbstractReader

java.lang.Object
org.cometd.server.http.AsyncJSONTransport.AbstractReader
All Implemented Interfaces:
EventListener, javax.servlet.ReadListener
Direct Known Subclasses:
AsyncJSONTransport.CharsetReader, AsyncJSONTransport.UTF8Reader
Enclosing class:
AsyncJSONTransport

protected abstract class AsyncJSONTransport.AbstractReader extends Object implements javax.servlet.ReadListener
  • Constructor Details

  • Method Details

    • onDataAvailable

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

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

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

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

      protected void finish(String json) throws IOException
      Throws:
      IOException
    • onError

      public void onError(Throwable failure)
      Specified by:
      onError in interface javax.servlet.ReadListener