Class WSAuWriter

  • All Implemented Interfaces:
    AuWriter

    public class WSAuWriter
    extends java.lang.Object
    implements AuWriter
    An AuWriter that is based on WebSocket.
    Since:
    8.5.0
    Author:
    wenninghsu
    • Constructor Summary

      Constructors 
      Constructor Description
      WSAuWriter()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close​(java.lang.Object websocketEndpoint, java.lang.Object response)
      Closes the writer and flush the result to client.
      java.lang.Object complete()
      Indicates the writing has been completed.
      AuWriter open​(java.lang.Object websocketEndpoint, java.lang.Object response)
      Initializes the writer.
      void resend​(java.lang.Object prevContent)
      Resend the content of the previous request returned by AuWriter.complete().
      protected byte[] restore​(java.lang.Object data)  
      protected java.lang.Object save​(byte[] data)  
      void setCompress​(boolean compress)
      Sets whether to compress the output with GZIP.
      void write​(java.util.Collection<AuResponse> responses)
      Generates a list of responses to the output.
      void write​(AuResponse response)
      Generates the specified the response to the output.
      void writeResponseId​(int resId)
      Generates the response ID to the output.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait