org.springframework.web.socket.sockjs.frame

Class Jackson2SockJsMessageCodec

    • Constructor Detail

      • Jackson2SockJsMessageCodec

        public Jackson2SockJsMessageCodec()
      • Jackson2SockJsMessageCodec

        public Jackson2SockJsMessageCodec(ObjectMapper objectMapper)
    • Method Detail

      • decode

        @Nullable
        public java.lang.String[] decode(java.lang.String content)
                                            throws java.io.IOException
        Description copied from interface: SockJsMessageCodec
        Decode the given SockJS message frame.
        Parameters:
        content - the SockJS message frame
        Returns:
        an array of messages, or null if none
        Throws:
        java.io.IOException - if the content could not be parsed
      • decodeInputStream

        @Nullable
        public java.lang.String[] decodeInputStream(java.io.InputStream content)
                                                       throws java.io.IOException
        Description copied from interface: SockJsMessageCodec
        Decode the given SockJS message frame.
        Parameters:
        content - the SockJS message frame
        Returns:
        an array of messages, or null if none
        Throws:
        java.io.IOException - if the content could not be parsed