Class ClientStompEncoder

java.lang.Object
org.springframework.messaging.simp.stomp.StompEncoder
org.springframework.integration.websocket.support.ClientStompEncoder

public class ClientStompEncoder extends org.springframework.messaging.simp.stomp.StompEncoder
A 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.
Since:
4.3.13
  • Constructor Details

    • ClientStompEncoder

      public ClientStompEncoder()
  • Method Details

    • encode

      public byte[] encode(Map<String,Object> headers, byte[] payload)
      Overrides:
      encode in class org.springframework.messaging.simp.stomp.StompEncoder