Example usage for Java org.springframework.messaging.simp SimpMessageHeaderAccessor fields, constructors, methods, implement or subclass
The text is from its open source code.
String | DESTINATION_HEADER |
String | USER_HEADER |
String | HEART_BEAT_HEADER |
String | ORIGINAL_DESTINATION A header for internal use with "user" destinations where we need to restore the destination prior to sending messages to clients. |
SimpMessageHeaderAccessor | create(SimpMessageType messageType) Create an instance with the given org.springframework.messaging.simp.SimpMessageType . |
String | getDestination(Map |
String | getDestination() |
Object | getHeader(String headerName) Retrieve the value for the header with the given name. |
MessageHeaders | getMessageHeaders() Return the underlying MessageHeaders instance. |
SimpMessageType | getMessageType(Map |
SimpMessageType | getMessageType() |
Map | getSessionAttributes(Map |
String | getSessionId(Map |
String | getSessionId() Return the id of the current session. |
String | getSubscriptionId(Map |
String | getSubscriptionId() |
Principal | getUser(Map |
Principal | getUser() Return the user associated with the current session. |
boolean | isMutable() Whether the underlying headers can still be modified. |
void | setDestination(@Nullable String destination) |
void | setHeader(String name, @Nullable Object value) Set the value for the given header name. |
void | setLeaveMutable(boolean leaveMutable) By default when #getMessageHeaders() is called, "this" MessageHeaderAccessor instance can no longer be used to modify the underlying message headers and the returned MessageHeaders is immutable. |
void | setMessageTypeIfNotSet(SimpMessageType messageType) |
void | setNativeHeader(String name, @Nullable String value) Set the specified native header value replacing existing values. |
void | setSessionId(@Nullable String sessionId) |
void | setSubscriptionId(@Nullable String subscriptionId) |
SimpMessageHeaderAccessor | wrap(Message> message) Create an instance from the payload and headers of the given Message. |