Uses of Class
org.springframework.messaging.MessageHeaders
Package
Description
This package provides generic JMS support classes,
to be used by higher-level classes like JmsTemplate.
Provides a MessageConverter abstraction to convert
between Java objects and JMS messages.
Support for working with messaging APIs and protocols.
Provides support for message conversion.
Support classes for handling messages from 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 MessageHeaders in org.springframework.jms.support
Modifier and TypeMethodDescriptionModifier and TypeMethodDescriptionvoid
SimpleJmsHeaderMapper.fromHeaders
(MessageHeaders headers, Message jmsMessage) -
Uses of MessageHeaders in org.springframework.jms.support.converter
Modifier and TypeMethodDescriptionprotected final MessageHeaders
MessagingMessageConverter.extractHeaders
(Message message) -
Uses of MessageHeaders in org.springframework.messaging
Modifier and TypeMethodDescriptionMessage.getHeaders()
Return message headers for the message (nevernull
but may be empty). -
Uses of MessageHeaders in org.springframework.messaging.converter
Modifier and TypeMethodDescriptionprotected boolean
AbstractMessageConverter.canConvertTo
(Object payload, MessageHeaders headers) protected boolean
MappingJackson2MessageConverter.canConvertTo
(Object payload, MessageHeaders headers) protected boolean
MarshallingMessageConverter.canConvertTo
(Object payload, MessageHeaders headers) protected boolean
ProtobufMessageConverter.canConvertTo
(Object payload, MessageHeaders headers) protected Object
AbstractJsonMessageConverter.convertToInternal
(Object payload, MessageHeaders headers, Object conversionHint) protected Object
AbstractMessageConverter.convertToInternal
(Object payload, MessageHeaders headers, Object conversionHint) Convert the payload object to serialized form.protected Object
ByteArrayMessageConverter.convertToInternal
(Object payload, MessageHeaders headers, Object conversionHint) protected Object
MappingJackson2MessageConverter.convertToInternal
(Object payload, MessageHeaders headers, Object conversionHint) protected Object
MarshallingMessageConverter.convertToInternal
(Object payload, MessageHeaders headers, Object conversionHint) protected Object
ProtobufMessageConverter.convertToInternal
(Object payload, MessageHeaders headers, Object conversionHint) protected Object
StringMessageConverter.convertToInternal
(Object payload, MessageHeaders headers, Object conversionHint) protected MimeType
AbstractMessageConverter.getMimeType
(MessageHeaders headers) ContentTypeResolver.resolve
(MessageHeaders headers) Determine theMimeType
of a message from the given MessageHeaders.DefaultContentTypeResolver.resolve
(MessageHeaders headers) protected boolean
AbstractMessageConverter.supportsMimeType
(MessageHeaders headers) final Message<?>
AbstractMessageConverter.toMessage
(Object payload, MessageHeaders headers) final Message<?>
AbstractMessageConverter.toMessage
(Object payload, MessageHeaders headers, Object conversionHint) Message<?>
CompositeMessageConverter.toMessage
(Object payload, MessageHeaders headers) Message<?>
CompositeMessageConverter.toMessage
(Object payload, MessageHeaders headers, Object conversionHint) Message<?>
MessageConverter.toMessage
(Object payload, MessageHeaders headers) Create aMessage
whose payload is the result of converting the given payload Object to serialized form.Message<?>
SimpleMessageConverter.toMessage
(Object payload, MessageHeaders headers) Message<?>
SmartMessageConverter.toMessage
(Object payload, MessageHeaders headers, Object conversionHint) A variant ofMessageConverter.toMessage(Object, MessageHeaders)
which takes an extra conversion context as an argument, allowing to take, for example, annotations on a return type into account. -
Uses of MessageHeaders in org.springframework.messaging.simp.annotation.support
Modifier and TypeMethodDescriptionprotected String
SendToMethodReturnValueHandler.getUserName
(Message<?> message, MessageHeaders headers) -
Uses of MessageHeaders in org.springframework.messaging.support
Modifier and TypeMethodDescriptionGenericMessage.getHeaders()
MessageHeaderAccessor.getMessageHeaders()
Return the underlyingMessageHeaders
instance.Map from the given target message to abstractedMessageHeaders
.MessageHeaderAccessor.toMessageHeaders()
Return a copy of the underlying header values as aMessageHeaders
object.Modifier and TypeMethodDescriptionstatic <T> Message<T>
MessageBuilder.createMessage
(T payload, MessageHeaders messageHeaders) A shortcut factory method for creating a message with the given payload andMessageHeaders
.void
HeaderMapper.fromHeaders
(MessageHeaders headers, T target) Map from the givenMessageHeaders
to the specified target message.static MessageHeaderAccessor
MessageHeaderAccessor.fromMessageHeaders
(MessageHeaders headers) Create an instance from an existingMessageHeaders
instance.static <T extends MessageHeaderAccessor>
TMessageHeaderAccessor.getAccessor
(MessageHeaders messageHeaders, Class<T> requiredType) A variation ofMessageHeaderAccessor.getAccessor(org.springframework.messaging.Message, Class)
with aMessageHeaders
instance instead of aMessage
.ModifierConstructorDescriptionErrorMessage
(Throwable payload, MessageHeaders headers) A constructor with theMessageHeaders
instance to use.ErrorMessage
(Throwable payload, MessageHeaders headers, Message<?> originalMessage) Create a new message with the payload,MessageHeaders
and original message.GenericMessage
(T payload, MessageHeaders headers) A constructor with theMessageHeaders
instance to use.