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

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

Introduction

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

The text is from its open source code.

Field

StringDESTINATION_HEADER
StringUSER_HEADER
StringHEART_BEAT_HEADER
StringORIGINAL_DESTINATION
A header for internal use with "user" destinations where we need to restore the destination prior to sending messages to clients.

Method

SimpMessageHeaderAccessorcreate(SimpMessageType messageType)
Create an instance with the given org.springframework.messaging.simp.SimpMessageType .
StringgetDestination(Map headers)
StringgetDestination()
ObjectgetHeader(String headerName)
Retrieve the value for the header with the given name.
MessageHeadersgetMessageHeaders()
Return the underlying MessageHeaders instance.
SimpMessageTypegetMessageType(Map headers)
SimpMessageTypegetMessageType()
MapgetSessionAttributes(Map headers)
StringgetSessionId(Map headers)
StringgetSessionId()
Return the id of the current session.
StringgetSubscriptionId(Map headers)
StringgetSubscriptionId()
PrincipalgetUser(Map headers)
PrincipalgetUser()
Return the user associated with the current session.
booleanisMutable()
Whether the underlying headers can still be modified.
voidsetDestination(@Nullable String destination)
voidsetHeader(String name, @Nullable Object value)
Set the value for the given header name.
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.
voidsetMessageTypeIfNotSet(SimpMessageType messageType)
voidsetNativeHeader(String name, @Nullable String value)
Set the specified native header value replacing existing values.
voidsetSessionId(@Nullable String sessionId)
voidsetSubscriptionId(@Nullable String subscriptionId)
SimpMessageHeaderAccessorwrap(Message message)
Create an instance from the payload and headers of the given Message.