类 StompEncoder


  • public class StompEncoder
    extends Object
    An encoder for STOMP frames.
    从以下版本开始:
    4.0
    作者:
    Andy Wilkinson, Rossen Stoyanchev
    另请参阅:
    StompDecoder
    • 方法详细资料

      • encode

        public byte[] encode​(Message<byte[]> message)
        Encodes the given STOMP message into a byte[]
        参数:
        message - the message to encode
        返回:
        the encoded message
      • encode

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