Uses of Class
org.springframework.messaging.support.MessageHeaderAccessor
Package
Description
This package provides generic JMS support classes,
to be used by higher-level classes like JmsTemplate.
Generic support for Simple Messaging Protocols including protocols such as STOMP.
Generic support for simple messaging protocols (like STOMP).
Provides implementations of
Message
along with
a MessageBuilder and MessageHeaderAccessor for building and working with messages and
message headers, as well as various MessageChannel
implementations and channel interceptor support.-
Uses of MessageHeaderAccessor in org.springframework.jms.support
Modifier and TypeClassDescriptionclass
AMessageHeaderAccessor
implementation giving access to JMS-specific headers. -
Uses of MessageHeaderAccessor in org.springframework.messaging.simp
Modifier and TypeClassDescriptionclass
A base class for working with message headers in simple messaging protocols that support basic messaging patterns.Modifier and TypeMethodDescriptionprotected MessageHeaderAccessor
SimpMessageHeaderAccessor.createAccessor
(Message<?> message) -
Uses of MessageHeaderAccessor in org.springframework.messaging.simp.stomp
Modifier and TypeClassDescriptionclass
AMessageHeaderAccessor
to use when creating aMessage
from a decoded STOMP frame, or when encoding aMessage
to a STOMP frame.Modifier and TypeMethodDescriptionprotected MessageHeaderAccessor
StompHeaderAccessor.createAccessor
(Message<?> message) -
Uses of MessageHeaderAccessor in org.springframework.messaging.support
Modifier and TypeClassDescriptionclass
MessageHeaderAccessor
subclass that supports storage and access of headers from an external source such as a message broker.Modifier and TypeMethodDescriptionstatic <T extends MessageHeaderAccessor>
TMessageHeaderAccessor.getAccessor
(Message<?> message, Class<T> requiredType) Return the originalMessageHeaderAccessor
used to create the headers of the givenMessage
, ornull
if that's not available or if its type does not match the required type.static <T extends MessageHeaderAccessor>
TMessageHeaderAccessor.getAccessor
(MessageHeaders messageHeaders, Class<T> requiredType) A variation ofgetAccessor(org.springframework.messaging.Message, Class)
with aMessageHeaders
instance instead of aMessage
.Modifier and TypeMethodDescriptionprotected MessageHeaderAccessor
MessageHeaderAccessor.createAccessor
(Message<?> message) Build a 'nested' accessor for the given message.static MessageHeaderAccessor
MessageHeaderAccessor.getAccessor
(Message<?> message) Return the originalMessageHeaderAccessor
used to create the headers of the givenMessage
, ornull
if that's not available or if its type does not match the required type.static MessageHeaderAccessor
MessageHeaderAccessor.getMutableAccessor
(Message<?> message) Return a mutableMessageHeaderAccessor
for the given message attempting to match the type of accessor used to create the message headers, or otherwise wrapping the message with aMessageHeaderAccessor
instance.Modifier and TypeMethodDescriptionvoid
IdTimestampMessageHeaderInitializer.initHeaders
(MessageHeaderAccessor headerAccessor) void
MessageHeaderInitializer.initHeaders
(MessageHeaderAccessor headerAccessor) Initialize the givenMessageHeaderAccessor
.MessageBuilder.setHeaders
(MessageHeaderAccessor accessor) Set the message headers to use by providing aMessageHeaderAccessor
.