Class WSAuWriter

  • All Implemented Interfaces:
    org.zkoss.zk.au.AuWriter

    public class WSAuWriter
    extends java.lang.Object
    implements org.zkoss.zk.au.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)  
      java.lang.Object complete()  
      org.zkoss.zk.au.AuWriter open​(java.lang.Object websocketEndpoint, java.lang.Object response)  
      void resend​(java.lang.Object prevContent)  
      protected byte[] restore​(java.lang.Object data)  
      protected java.lang.Object save​(byte[] data)  
      void setCompress​(boolean compress)  
      void write​(java.util.Collection<org.zkoss.zk.au.AuResponse> responses)  
      void write​(org.zkoss.zk.au.AuResponse response)  
      void writeResponseId​(int resId)  
      • Methods inherited from class java.lang.Object

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

      • WSAuWriter

        public WSAuWriter()
    • Method Detail

      • setCompress

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

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

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

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

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

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

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

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

        protected byte[] restore​(java.lang.Object data)
      • save

        protected java.lang.Object save​(byte[] data)