Class AbstractSockJsMessageCodec

  • java.lang.Object
    • org.springframework.web.socket.sockjs.frame.AbstractSockJsMessageCodec
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method and Description
      protected abstract char[] applyJsonQuoting(java.lang.String content)
      Apply standard JSON string quoting (see
      java.lang.String encode(java.lang.String... messages)
      Encode the given messages as a SockJS message frame.
      • Methods inherited from class java.lang.Object

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

      • AbstractSockJsMessageCodec

        public AbstractSockJsMessageCodec()
    • Method Detail

      • encode

        public java.lang.String encode(java.lang.String... messages)
        Description copied from interface: SockJsMessageCodec
        Encode the given messages as a SockJS message frame. Aside from applying standard JSON quoting to each message, there are some additional JSON Unicode escaping rules. See the "JSON Unicode Encoding" section of SockJS protocol (i.e. the protocol test suite).
        Specified by:
        encode in interface SockJsMessageCodec
        messages - the messages to encode
        the content for a SockJS message frame (never null)
      • applyJsonQuoting

        protected abstract char[] applyJsonQuoting(java.lang.String content)
        Apply standard JSON string quoting (see