JmsHeaderMapper.
This implementation copies JMS API headers (e.g. JMSReplyTo) to and from
Messages. Any user-defined
properties will also be copied from a JMS Message to a Message, and any
other headers on a Message (beyond the JMS API headers) will likewise
be copied to a JMS Message. Those other headers will be copied to the
general properties of a JMS Message whereas the JMS API headers are passed
to the appropriate setter methods (e.g. setJMSReplyTo).
Constants for the JMS API headers are defined in JmsHeaders.
Note that most of the JMS headers are read-only: the JMSDestination,
JMSDeliveryMode, JMSExpiration, JMSMessageID, JMSPriority, JMSRedelivered
and JMSTimestamp flags are only copied from a JMS Message. Those
values will not be passed along from a Message to an outbound
JMS Message.
| Modifier and Type | Field and Description |
|---|---|
| private static final Set |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected String | fromHeaderName(String headerName)
Overrides org. Add the outbound prefix if necessary. |
| public void | fromHeaders(MessageHeaders
the abstracted MessageHeaders headers, Message the native target message jmsMessage)Implements org. Map from the given |
| protected String | toHeaderName(String propertyName)
Overrides org. Add the inbound prefix if necessary. |
| public MessageHeaders | toHeaders(Message
the native target message jmsMessage)Implements org. Map from the given target message to abstracted |
| SUPPORTED_PROPERTY_TYPES | back to summary |
|---|---|
| private static final Set<Class<?>> SUPPORTED_PROPERTY_TYPES | |
| SimpleJmsHeaderMapper | back to summary |
|---|---|
| public SimpleJmsHeaderMapper() | |
| fromHeaderName | back to summary |
|---|---|
| protected String fromHeaderName(String headerName) Overrides org. Add the outbound prefix if necessary. Convert
| |
| fromHeaders | back to summary |
|---|---|
| public void fromHeaders(MessageHeaders headers, Message jmsMessage) Implements org. Doc from org. Map from the given
| |
| toHeaderName | back to summary |
|---|---|
| protected String toHeaderName(String propertyName) Overrides org. Add the inbound prefix if necessary. Convert the JMS-compliant
| |
| toHeaders | back to summary |
|---|---|
| public MessageHeaders toHeaders(Message jmsMessage) Implements org. Doc from org. Map from the given target message to abstracted
| |