Uses of Class
org.springframework.messaging.support.MessageHeaderAccessor
Packages that use 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
Subclasses of MessageHeaderAccessor in org.springframework.jms.supportModifier and TypeClassDescriptionclass
AMessageHeaderAccessor
implementation giving access to JMS-specific headers. -
Uses of MessageHeaderAccessor in org.springframework.messaging.simp
Subclasses of MessageHeaderAccessor in org.springframework.messaging.simpModifier and TypeClassDescriptionclass
A base class for working with message headers in simple messaging protocols that support basic messaging patterns.Methods in org.springframework.messaging.simp that return MessageHeaderAccessorModifier and TypeMethodDescriptionprotected MessageHeaderAccessor
SimpMessageHeaderAccessor.createAccessor
(Message<?> message) -
Uses of MessageHeaderAccessor in org.springframework.messaging.simp.stomp
Subclasses of MessageHeaderAccessor in org.springframework.messaging.simp.stompModifier and TypeClassDescriptionclass
AMessageHeaderAccessor
to use when creating aMessage
from a decoded STOMP frame, or when encoding aMessage
to a STOMP frame.Methods in org.springframework.messaging.simp.stomp that return MessageHeaderAccessorModifier and TypeMethodDescriptionprotected MessageHeaderAccessor
StompHeaderAccessor.createAccessor
(Message<?> message) -
Uses of MessageHeaderAccessor in org.springframework.messaging.support
Subclasses of MessageHeaderAccessor in org.springframework.messaging.supportModifier and TypeClassDescriptionclass
MessageHeaderAccessor
subclass that supports storage and access of headers from an external source such as a message broker.Methods in org.springframework.messaging.support with type parameters of type MessageHeaderAccessorModifier 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
.Methods in org.springframework.messaging.support that return MessageHeaderAccessorModifier and TypeMethodDescriptionprotected MessageHeaderAccessor
MessageHeaderAccessor.createAccessor
(Message<?> message) Build a 'nested' accessor for the given message.static MessageHeaderAccessor
Create an instance from a plainMap
.static MessageHeaderAccessor
MessageHeaderAccessor.fromMessageHeaders
(MessageHeaders headers) Create an instance from an existingMessageHeaders
instance.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.Methods in org.springframework.messaging.support with parameters of type MessageHeaderAccessorModifier 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
.