类 AbstractSockJsMessageCodec

    • 方法详细资料

      • encode

        public String encode​(String... messages)
        从接口复制的说明: 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).
        指定者:
        encode 在接口中 SockJsMessageCodec
        参数:
        messages - the messages to encode
        返回:
        the content for a SockJS message frame (never null)
      • applyJsonQuoting

        protected abstract char[] applyJsonQuoting​(String content)
        Apply standard JSON string quoting (see https://www.json.org/).