Example usage for Java org.springframework.messaging.simp.stomp StompHeaderAccessor fields, constructors, methods, implement or subclass
The text is from its open source code.
String | STOMP_PASSCODE_HEADER |
void | addNativeHeader(String name, @Nullable String value) Add the specified native header value to existing values. |
void | addNativeHeaders(@Nullable MultiValueMap |
StompHeaderAccessor | create(StompCommand command) Create an instance for the given STOMP command. |
StompHeaderAccessor | createForHeartbeat() Create headers for a heartbeat. |
Set | getAcceptVersion() |
StompCommand | getCommand() Return the STOMP command, or null if not yet set. |
StompCommand | getCommand(Map Return the STOMP command from the given headers, or null if not set. |
Integer | getContentLength() |
MimeType | getContentType() |
String | getDestination() |
String | getDetailedLogMessage(@Nullable Object payload) |
String | getFirstNativeHeader(String headerName) Return the first value for the specified native header, or null if none. |
Object | getHeader(String headerName) Retrieve the value for the header with the given name. |
long[] | getHeartbeat() |
UUID | getId() |
MessageHeaders | getMessageHeaders() Return the underlying MessageHeaders instance. |
SimpMessageType | getMessageType() |
List | getNativeHeader(String headerName) Return all values for the specified native header. |
Map | getNativeHeaders() |
String | getPasscode(Map Return the passcode header value, or null if not set. |
String | getReceipt() |
String | getSessionId() Return the id of the current session. |
String | getShortLogMessage(Object payload) |
String | getSubscriptionId() |
Principal | getUser() Return the user associated with the current session. |
boolean | isHeartbeat() |
boolean | isMutable() Whether the underlying headers can still be modified. |
List | removeNativeHeader(String name) |
void | setAcceptVersion(String acceptVersion) |
void | setDestination(@Nullable String destination) |
void | setHeader(String name, @Nullable Object value) Set the value for the given header name. |
void | setHeartbeat(long cx, long cy) |
void | setImmutable() |
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 | setLogin(@Nullable String login) |
void | setMessage(@Nullable String content) |
void | setNativeHeader(String name, @Nullable String value) Set the specified native header value replacing existing values. |
void | setPasscode(@Nullable String passcode) |
void | setReceipt(@Nullable String receiptId) |
void | setReceiptId(@Nullable String receiptId) |
void | setSessionAttributes(@Nullable Map A static alternative for access to the session attributes header. |
void | setSessionId(@Nullable String sessionId) |
void | setSubscriptionId(@Nullable String subscriptionId) |
void | setUser(@Nullable Principal principal) |
void | setVersion(@Nullable String version) |
Map | toMap() Return a copy of the underlying header values as a plain Map object. |
void | updateSimpMessageHeadersFromStompHeaders() |
void | updateStompCommandAsServerMessage() |
void | updateStompHeadersFromSimpMessageHeaders() |
StompHeaderAccessor | wrap(Message> message) Create an instance from the payload and headers of the given Message. |