public class JmsMessageHeaderAccessor extends NativeMessageHeaderAccessor
MessageHeaderAccessor
implementation giving access to JMS-specific headers.NATIVE_HEADERS
DEFAULT_CHARSET
Modifier | Constructor and Description |
---|---|
protected |
JmsMessageHeaderAccessor(java.util.Map<java.lang.String,java.util.List<java.lang.String>> nativeHeaders) |
protected |
JmsMessageHeaderAccessor(Message<?> message) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getCorrelationId()
Return the
correlationId . |
java.lang.Integer |
getDeliveryMode()
Return the
delivery mode . |
Destination |
getDestination()
Return the
destination . |
java.lang.Long |
getExpiration()
Return the message
expiration . |
java.lang.String |
getMessageId()
Return the
message id . |
java.lang.Integer |
getPriority()
Return the
JmsHeaders.PRIORITY . |
java.lang.Boolean |
getRedelivered()
Return the
redelivered flag. |
Destination |
getReplyTo()
Return the
reply to . |
java.lang.Long |
getTimestamp()
Return the
timestamp . |
java.lang.String |
getType()
Return the
type . |
static JmsMessageHeaderAccessor |
wrap(Message<?> message)
Create a
JmsMessageHeaderAccessor from the headers of an existing message. |
addNativeHeader, addNativeHeaders, containsNativeHeader, getFirstNativeHeader, getFirstNativeHeader, getNativeHeader, removeNativeHeader, setImmutable, setNativeHeader, toNativeHeaderMap
copyHeaders, copyHeadersIfAbsent, createAccessor, 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
protected JmsMessageHeaderAccessor(java.util.Map<java.lang.String,java.util.List<java.lang.String>> nativeHeaders)
protected JmsMessageHeaderAccessor(Message<?> message)
public java.lang.String getCorrelationId()
correlationId
.JmsHeaders.CORRELATION_ID
public Destination getDestination()
destination
.JmsHeaders.DESTINATION
public java.lang.Integer getDeliveryMode()
delivery mode
.JmsHeaders.DELIVERY_MODE
public java.lang.Long getExpiration()
expiration
.JmsHeaders.EXPIRATION
public java.lang.String getMessageId()
message id
.JmsHeaders.MESSAGE_ID
public java.lang.Integer getPriority()
JmsHeaders.PRIORITY
.JmsHeaders.PRIORITY
public Destination getReplyTo()
reply to
.JmsHeaders.REPLY_TO
public java.lang.Boolean getRedelivered()
redelivered
flag.JmsHeaders.REDELIVERED
public java.lang.String getType()
type
.JmsHeaders.TYPE
public java.lang.Long getTimestamp()
timestamp
.getTimestamp
in class MessageHeaderAccessor
JmsHeaders.TIMESTAMP
public static JmsMessageHeaderAccessor wrap(Message<?> message)
JmsMessageHeaderAccessor
from the headers of an existing message.