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, @Nullable MessageHeaders headers) protected boolean
MappingJackson2MessageConverter.canConvertTo
(Object payload, @Nullable MessageHeaders headers) protected boolean
MarshallingMessageConverter.canConvertTo
(Object payload, @Nullable MessageHeaders headers) protected boolean
ProtobufMessageConverter.canConvertTo
(Object payload, @Nullable MessageHeaders headers) AbstractJsonMessageConverter.convertToInternal
(Object payload, @Nullable MessageHeaders headers, @Nullable Object conversionHint) AbstractMessageConverter.convertToInternal
(Object payload, @Nullable MessageHeaders headers, @Nullable Object conversionHint) Convert the payload object to serialized form.ByteArrayMessageConverter.convertToInternal
(Object payload, @Nullable MessageHeaders headers, @Nullable Object conversionHint) MappingJackson2MessageConverter.convertToInternal
(Object payload, @Nullable MessageHeaders headers, @Nullable Object conversionHint) MarshallingMessageConverter.convertToInternal
(Object payload, @Nullable MessageHeaders headers, @Nullable Object conversionHint) protected Object
ProtobufMessageConverter.convertToInternal
(Object payload, @Nullable MessageHeaders headers, @Nullable Object conversionHint) StringMessageConverter.convertToInternal
(Object payload, @Nullable MessageHeaders headers, @Nullable Object conversionHint) AbstractMessageConverter.getMimeType
(@Nullable MessageHeaders headers) ContentTypeResolver.resolve
(@Nullable MessageHeaders headers) Determine theMimeType
of a message from the given MessageHeaders.DefaultContentTypeResolver.resolve
(@Nullable MessageHeaders headers) protected boolean
AbstractMessageConverter.supportsMimeType
(@Nullable MessageHeaders headers) AbstractMessageConverter.toMessage
(Object payload, @Nullable MessageHeaders headers) AbstractMessageConverter.toMessage
(Object payload, @Nullable MessageHeaders headers, @Nullable Object conversionHint) CompositeMessageConverter.toMessage
(Object payload, @Nullable MessageHeaders headers) CompositeMessageConverter.toMessage
(Object payload, @Nullable MessageHeaders headers, @Nullable Object conversionHint) MessageConverter.toMessage
(Object payload, @Nullable MessageHeaders headers) Create aMessage
whose payload is the result of converting the given payload Object to serialized form.Message<?>
SimpleMessageConverter.toMessage
(Object payload, @Nullable MessageHeaders headers) SmartMessageConverter.toMessage
(Object payload, @Nullable MessageHeaders headers, @Nullable 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 TypeMethodDescriptionSendToMethodReturnValueHandler.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
(@Nullable MessageHeaders headers) Create an instance from an existingMessageHeaders
instance.static <T extends MessageHeaderAccessor>
@Nullable TMessageHeaderAccessor.getAccessor
(MessageHeaders messageHeaders, @Nullable 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.