|
Spring Integration | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.springframework.integration.jms.DefaultJmsHeaderMapper
public class DefaultJmsHeaderMapper
Default implementation of JmsHeaderMapper.
This implementation copies JMS API headers (e.g. JMSReplyTo) to and from Spring Integration Messages. Any user-defined properties will also be copied from a JMS Message to a Spring Integration Message, and any other headers on a Spring Integration 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 the JMSMessageID and JMSRedelivered flag are only copied
from a JMS Message. Those values will not be passed
along from a Spring Integration Message to an outbound JMS Message.
| Field Summary |
|---|
| Fields inherited from interface org.springframework.integration.jms.JmsHeaderMapper |
|---|
CONTENT_TYPE_PROPERTY |
| Constructor Summary | |
|---|---|
DefaultJmsHeaderMapper()
|
|
| Method Summary | |
|---|---|
void |
fromHeaders(MessageHeaders headers,
javax.jms.Message jmsMessage)
|
void |
setInboundPrefix(java.lang.String inboundPrefix)
Specify a prefix to be appended to the integration message header name for any JMS property that is being mapped into the MessageHeaders. |
void |
setOutboundPrefix(java.lang.String outboundPrefix)
Specify a prefix to be appended to the JMS property name for any integration message header that is being mapped into the JMS Message. |
java.util.Map<java.lang.String,java.lang.Object> |
toHeaders(javax.jms.Message jmsMessage)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultJmsHeaderMapper()
| Method Detail |
|---|
public void setInboundPrefix(java.lang.String inboundPrefix)
This does not affect the JMS properties covered by the specification/API,
such as JMSCorrelationID, etc. The header names used for mapping such
properties are all defined in our JmsHeaders.
public void setOutboundPrefix(java.lang.String outboundPrefix)
This does not affect the JMS properties covered by the specification/API,
such as JMSCorrelationID, etc. The header names used for mapping such
properties are all defined in our JmsHeaders.
public void fromHeaders(MessageHeaders headers,
javax.jms.Message jmsMessage)
fromHeaders in interface HeaderMapper<javax.jms.Message>public java.util.Map<java.lang.String,java.lang.Object> toHeaders(javax.jms.Message jmsMessage)
toHeaders in interface HeaderMapper<javax.jms.Message>
|
Spring Integration | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||