Class AsyncJSONTransport.Writer

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

    protected class AsyncJSONTransport.Writer
    extends java.lang.Object
    implements javax.servlet.WriteListener
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected Writer​(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, javax.servlet.AsyncContext asyncContext, ServerSessionImpl session, boolean scheduleExpiration, java.util.List<ServerMessage> messages, ServerMessage.Mutable[] replies)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void onError​(java.lang.Throwable throwable)  
      void onWritePossible()  
      • Methods inherited from class java.lang.Object

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

      • Writer

        protected Writer​(javax.servlet.http.HttpServletRequest request,
                         javax.servlet.http.HttpServletResponse response,
                         javax.servlet.AsyncContext asyncContext,
                         ServerSessionImpl session,
                         boolean scheduleExpiration,
                         java.util.List<ServerMessage> messages,
                         ServerMessage.Mutable[] replies)
    • Method Detail

      • onWritePossible

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

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