Class WSAuWriter

java.lang.Object
org.zkoss.zkmax.au.websocket.WSAuWriter
All Implemented Interfaces:
org.zkoss.zk.au.AuWriter

public class WSAuWriter extends Object implements org.zkoss.zk.au.AuWriter
An AuWriter that is based on WebSocket.
Since:
8.5.0
Author:
wenninghsu
  • Constructor Details

    • WSAuWriter

      public WSAuWriter()
  • Method Details

    • setCompress

      public void setCompress(boolean compress)
      Specified by:
      setCompress in interface org.zkoss.zk.au.AuWriter
    • open

      public org.zkoss.zk.au.AuWriter open(Object websocketEndpoint, Object response) throws IOException
      Specified by:
      open in interface org.zkoss.zk.au.AuWriter
      Throws:
      IOException
    • close

      public void close(Object websocketEndpoint, Object response) throws IOException
      Specified by:
      close in interface org.zkoss.zk.au.AuWriter
      Throws:
      IOException
    • complete

      public Object complete() throws IOException
      Specified by:
      complete in interface org.zkoss.zk.au.AuWriter
      Throws:
      IOException
    • resend

      public void resend(Object prevContent) throws IOException
      Specified by:
      resend in interface org.zkoss.zk.au.AuWriter
      Throws:
      IOException
    • writeResponseId

      public void writeResponseId(int resId) throws IOException
      Specified by:
      writeResponseId in interface org.zkoss.zk.au.AuWriter
      Throws:
      IOException
    • write

      public void write(org.zkoss.zk.au.AuResponse response) throws IOException
      Specified by:
      write in interface org.zkoss.zk.au.AuWriter
      Throws:
      IOException
    • write

      public void write(Collection<org.zkoss.zk.au.AuResponse> responses) throws IOException
      Specified by:
      write in interface org.zkoss.zk.au.AuWriter
      Throws:
      IOException
    • restore

      protected byte[] restore(Object data)
    • save

      protected Object save(byte[] data)