Package | Description |
---|---|
org.springframework.jms.support |
This package provides generic JMS support classes,
to be used by higher-level classes like JmsTemplate.
|
org.springframework.jms.support.converter |
Provides a MessageConverter abstraction to convert
between Java objects and JMS messages.
|
org.springframework.messaging |
Support for working with messaging APIs and protocols.
|
org.springframework.messaging.converter |
Provides support for message conversion.
|
org.springframework.messaging.simp.annotation.support |
Support classes for handling messages from simple messaging protocols
(like STOMP).
|
org.springframework.messaging.support |
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. |
Modifier and Type | Method and Description |
---|---|
MessageHeaders |
SimpleJmsHeaderMapper.toHeaders(Message jmsMessage) |
Modifier and Type | Method and Description |
---|---|
void |
SimpleJmsHeaderMapper.fromHeaders(MessageHeaders headers,
Message jmsMessage) |
Modifier and Type | Method and Description |
---|---|
protected MessageHeaders |
MessagingMessageConverter.extractHeaders(Message message) |
Modifier and Type | Method and Description |
---|---|
MessageHeaders |
Message.getHeaders()
Return message headers for the message (never
null but may be empty). |
Modifier and Type | Method and Description |
---|---|
protected boolean |
AbstractMessageConverter.canConvertTo(java.lang.Object payload,
MessageHeaders headers) |
protected boolean |
MappingJackson2MessageConverter.canConvertTo(java.lang.Object payload,
MessageHeaders headers) |
protected boolean |
MarshallingMessageConverter.canConvertTo(java.lang.Object payload,
MessageHeaders headers) |
protected java.lang.Object |
ByteArrayMessageConverter.convertToInternal(java.lang.Object payload,
MessageHeaders headers,
java.lang.Object conversionHint) |
protected java.lang.Object |
AbstractMessageConverter.convertToInternal(java.lang.Object payload,
MessageHeaders headers,
java.lang.Object conversionHint)
Convert the payload object to serialized form.
|
protected java.lang.Object |
MappingJackson2MessageConverter.convertToInternal(java.lang.Object payload,
MessageHeaders headers,
java.lang.Object conversionHint) |
protected java.lang.Object |
StringMessageConverter.convertToInternal(java.lang.Object payload,
MessageHeaders headers,
java.lang.Object conversionHint) |
protected java.lang.Object |
MarshallingMessageConverter.convertToInternal(java.lang.Object payload,
MessageHeaders headers,
java.lang.Object conversionHint) |
protected MimeType |
AbstractMessageConverter.getMimeType(MessageHeaders headers) |
MimeType |
DefaultContentTypeResolver.resolve(MessageHeaders headers) |
MimeType |
ContentTypeResolver.resolve(MessageHeaders headers)
Determine the
MimeType of a message from the given MessageHeaders. |
protected boolean |
AbstractMessageConverter.supportsMimeType(MessageHeaders headers) |
Message<?> |
SimpleMessageConverter.toMessage(java.lang.Object payload,
MessageHeaders headers) |
Message<?> |
MessageConverter.toMessage(java.lang.Object payload,
MessageHeaders headers)
Create a
Message whose payload is the result of converting the given
payload Object to serialized form. |
Message<?> |
AbstractMessageConverter.toMessage(java.lang.Object payload,
MessageHeaders headers) |
Message<?> |
CompositeMessageConverter.toMessage(java.lang.Object payload,
MessageHeaders headers) |
Message<?> |
AbstractMessageConverter.toMessage(java.lang.Object payload,
MessageHeaders headers,
java.lang.Object conversionHint) |
Message<?> |
SmartMessageConverter.toMessage(java.lang.Object payload,
MessageHeaders headers,
java.lang.Object conversionHint)
A variant of
MessageConverter.toMessage(Object, MessageHeaders) which takes an extra
conversion context as an argument, allowing to take e.g. |
Message<?> |
CompositeMessageConverter.toMessage(java.lang.Object payload,
MessageHeaders headers,
java.lang.Object conversionHint) |
Modifier and Type | Method and Description |
---|---|
protected java.lang.String |
SendToMethodReturnValueHandler.getUserName(Message<?> message,
MessageHeaders headers) |
Modifier and Type | Method and Description |
---|---|
MessageHeaders |
GenericMessage.getHeaders() |
MessageHeaders |
MessageHeaderAccessor.getMessageHeaders()
Return the underlying
MessageHeaders instance. |
MessageHeaders |
HeaderMapper.toHeaders(T source)
Map from the given target message to abstracted
MessageHeaders . |
MessageHeaders |
MessageHeaderAccessor.toMessageHeaders()
Return a copy of the underlying header values as a
MessageHeaders object. |
Modifier and Type | Method and Description |
---|---|
static <T> Message<T> |
MessageBuilder.createMessage(T payload,
MessageHeaders messageHeaders)
A shortcut factory method for creating a message with the given payload
and
MessageHeaders . |
void |
HeaderMapper.fromHeaders(MessageHeaders headers,
T target)
Map from the given
MessageHeaders to the specified target message. |
static <T extends MessageHeaderAccessor> |
MessageHeaderAccessor.getAccessor(MessageHeaders messageHeaders,
java.lang.Class<T> requiredType)
A variation of
MessageHeaderAccessor.getAccessor(org.springframework.messaging.Message, Class)
with a MessageHeaders instance instead of a Message . |
Constructor and Description |
---|
ErrorMessage(java.lang.Throwable payload,
MessageHeaders headers)
A constructor with the
MessageHeaders instance to use. |
ErrorMessage(java.lang.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 the
MessageHeaders instance to use. |