Java org.springframework.messaging.simp.stomp StompHeaderAccessor fields, constructors, methods, implement or subclass

Example usage for Java org.springframework.messaging.simp.stomp StompHeaderAccessor fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.springframework.messaging.simp.stomp StompHeaderAccessor.

The text is from its open source code.

Field

Method

voidaddNativeHeader(String name, @Nullable String value)
Add the specified native header value to existing values.
voidaddNativeHeaders(@Nullable MultiValueMap headers)
StompHeaderAccessorcreate(StompCommand command)
Create an instance for the given STOMP command.
StompHeaderAccessorcreateForHeartbeat()
Create headers for a heartbeat.
SetgetAcceptVersion()
StompCommandgetCommand()
Return the STOMP command, or null if not yet set.
StompCommandgetCommand(Map headers)
Return the STOMP command from the given headers, or null if not set.
IntegergetContentLength()
MimeTypegetContentType()
StringgetDestination()
StringgetDetailedLogMessage(@Nullable Object payload)
StringgetFirstNativeHeader(String headerName)
Return the first value for the specified native header, or null if none.
ObjectgetHeader(String headerName)
Retrieve the value for the header with the given name.
long[]getHeartbeat()
UUIDgetId()
MessageHeadersgetMessageHeaders()
Return the underlying MessageHeaders instance.
SimpMessageTypegetMessageType()
ListgetNativeHeader(String headerName)
Return all values for the specified native header.
Map>getNativeHeaders()
StringgetPasscode(Map headers)
Return the passcode header value, or null if not set.
StringgetReceipt()
StringgetSessionId()
Return the id of the current session.
StringgetShortLogMessage(Object payload)
StringgetSubscriptionId()
PrincipalgetUser()
Return the user associated with the current session.
booleanisHeartbeat()
booleanisMutable()
Whether the underlying headers can still be modified.
ListremoveNativeHeader(String name)
voidsetAcceptVersion(String acceptVersion)
voidsetDestination(@Nullable String destination)
voidsetHeader(String name, @Nullable Object value)
Set the value for the given header name.
voidsetHeartbeat(long cx, long cy)
voidsetImmutable()
voidsetLeaveMutable(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.
voidsetLogin(@Nullable String login)
voidsetMessage(@Nullable String content)
voidsetNativeHeader(String name, @Nullable String value)
Set the specified native header value replacing existing values.
voidsetPasscode(@Nullable String passcode)
voidsetReceipt(@Nullable String receiptId)
voidsetReceiptId(@Nullable String receiptId)
voidsetSessionAttributes(@Nullable Map attributes)
A static alternative for access to the session attributes header.
voidsetSessionId(@Nullable String sessionId)
voidsetSubscriptionId(@Nullable String subscriptionId)
voidsetUser(@Nullable Principal principal)
voidsetVersion(@Nullable String version)
MaptoMap()
Return a copy of the underlying header values as a plain Map object.
voidupdateSimpMessageHeadersFromStompHeaders()
voidupdateStompCommandAsServerMessage()
voidupdateStompHeadersFromSimpMessageHeaders()
StompHeaderAccessorwrap(Message message)
Create an instance from the payload and headers of the given Message.