Class StompEncoder

    • Method Detail

      • encode

        public byte[] encode​(Message<byte[]> message)
        Encodes the given STOMP message into a byte[]
        Parameters:
        message - the message to encode
        Returns:
        the encoded message
      • encode

        public byte[] encode​(Map<String,​Object> headers,
                             byte[] payload)
        Encodes the given payload and headers into a byte[].
        Parameters:
        headers - the headers
        payload - the payload
        Returns:
        the encoded message