public class ClientStompEncoder extends StompEncoder
StompEncoder
extension to prepare a message for sending/receiving
before/after encoding/decoding when used from WebSockets client side.
For example it updates the stompCommand
header from the MESSAGE
to SEND
frame, which is the case of
StompSubProtocolHandler
.Constructor and Description |
---|
ClientStompEncoder() |
Modifier and Type | Method and Description |
---|---|
byte[] |
encode(Map<String,Object> headers,
byte[] payload) |
encode
public byte[] encode(Map<String,Object> headers, byte[] payload)
encode
in class StompEncoder