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 |
ProtobufMessageConverter.canConvertTo(Object payload,
MessageHeaders headers) |
protected boolean |
MarshallingMessageConverter.canConvertTo(Object payload,
MessageHeaders headers) |
protected boolean |
MappingJackson2MessageConverter.canConvertTo(Object payload,
MessageHeaders headers) |
protected boolean |
AbstractMessageConverter.canConvertTo(Object payload,
MessageHeaders headers) |
protected Object |
ProtobufMessageConverter.convertToInternal(Object payload,
MessageHeaders headers,
Object conversionHint) |
protected Object |
MarshallingMessageConverter.convertToInternal(Object payload,
MessageHeaders headers,
Object conversionHint) |
protected Object |
ByteArrayMessageConverter.convertToInternal(Object payload,
MessageHeaders headers,
Object conversionHint) |
protected Object |
MappingJackson2MessageConverter.convertToInternal(Object payload,
MessageHeaders headers,
Object conversionHint) |
protected Object |
StringMessageConverter.convertToInternal(Object payload,
MessageHeaders headers,
Object conversionHint) |
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 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(Object payload,
MessageHeaders headers) |
Message<?> |
CompositeMessageConverter.toMessage(Object payload,
MessageHeaders headers) |
Message<?> |
AbstractMessageConverter.toMessage(Object payload,
MessageHeaders headers) |
Message<?> |
MessageConverter.toMessage(Object payload,
MessageHeaders headers)
Create a
Message whose payload is the result of converting the given
payload Object to serialized form. |
Message<?> |
SmartMessageConverter.toMessage(Object payload,
MessageHeaders headers,
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(Object payload,
MessageHeaders headers,
Object conversionHint) |
Message<?> |
AbstractMessageConverter.toMessage(Object payload,
MessageHeaders headers,
Object conversionHint) |
Modifier and Type | Method and Description |
---|---|
protected 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,
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(Throwable payload,
MessageHeaders headers)
A constructor with the
MessageHeaders 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 the
MessageHeaders instance to use. |