Package org.springframework.jms.support
Class JmsMessageHeaderAccessor
java.lang.Object
org.springframework.messaging.support.MessageHeaderAccessor
org.springframework.messaging.support.NativeMessageHeaderAccessor
org.springframework.jms.support.JmsMessageHeaderAccessor
A
MessageHeaderAccessor
implementation giving access to JMS-specific headers.- Since:
- 4.1
- Author:
- Stephane Nicoll
-
Field Summary
Fields inherited from class org.springframework.messaging.support.NativeMessageHeaderAccessor
NATIVE_HEADERS
Fields inherited from class org.springframework.messaging.support.MessageHeaderAccessor
DEFAULT_CHARSET
-
Constructor Summary
ModifierConstructorDescriptionprotected
JmsMessageHeaderAccessor
(Map<String, List<String>> nativeHeaders) protected
JmsMessageHeaderAccessor
(Message<?> message) -
Method Summary
Modifier and TypeMethodDescriptionReturn thecorrelationId
.Return thedelivery mode
.Return thedestination
.Return the messageexpiration
.Return themessage id
.Return thepriority
.Return theredelivered
flag.Return thereply to
.Return thetimestamp
.getType()
Return thetype
.static JmsMessageHeaderAccessor
Create aJmsMessageHeaderAccessor
from the headers of an existing message.Methods inherited from class org.springframework.messaging.support.NativeMessageHeaderAccessor
addNativeHeader, addNativeHeaders, containsNativeHeader, copyHeaders, copyHeadersIfAbsent, getFirstNativeHeader, getFirstNativeHeader, getNativeHeader, getNativeHeaders, removeNativeHeader, setImmutable, setNativeHeader, setNativeHeaderValues, toNativeHeaderMap
Methods inherited from class org.springframework.messaging.support.MessageHeaderAccessor
createAccessor, getAccessor, getAccessor, getAccessor, getContentType, getDetailedLogMessage, getDetailedPayloadLogMessage, getErrorChannel, getHeader, getId, getMessageHeaders, getMutableAccessor, getReplyChannel, getShortLogMessage, getShortPayloadLogMessage, isModified, isMutable, isReadableContentType, isReadOnly, removeHeader, removeHeaders, setContentType, setErrorChannel, setErrorChannelName, setHeader, setHeaderIfAbsent, setLeaveMutable, setModified, setReplyChannel, setReplyChannelName, toMap, toMessageHeaders, toString, verifyType
-
Constructor Details
-
JmsMessageHeaderAccessor
-
JmsMessageHeaderAccessor
-
-
Method Details
-
getCorrelationId
Return thecorrelationId
.- See Also:
-
getDestination
Return thedestination
.- See Also:
-
getDeliveryMode
Return thedelivery mode
.- See Also:
-
getExpiration
Return the messageexpiration
.- See Also:
-
getMessageId
Return themessage id
.- See Also:
-
getPriority
Return thepriority
.- See Also:
-
getReplyTo
Return thereply to
.- See Also:
-
getRedelivered
Return theredelivered
flag.- See Also:
-
getType
Return thetype
.- See Also:
-
getTimestamp
Return thetimestamp
.- Overrides:
getTimestamp
in classMessageHeaderAccessor
- See Also:
-
wrap
Create aJmsMessageHeaderAccessor
from the headers of an existing message.
-