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, getNativeHeaders, 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)
@Nullable public java.lang.String getCorrelationId()
correlationId
.JmsHeaders.CORRELATION_ID
@Nullable public Destination getDestination()
destination
.JmsHeaders.DESTINATION
@Nullable public java.lang.Integer getDeliveryMode()
delivery mode
.JmsHeaders.DELIVERY_MODE
@Nullable public java.lang.Long getExpiration()
expiration
.JmsHeaders.EXPIRATION
@Nullable public java.lang.String getMessageId()
message id
.JmsHeaders.MESSAGE_ID
@Nullable public java.lang.Integer getPriority()
JmsHeaders.PRIORITY
.JmsHeaders.PRIORITY
@Nullable public Destination getReplyTo()
reply to
.JmsHeaders.REPLY_TO
@Nullable public java.lang.Boolean getRedelivered()
redelivered
flag.JmsHeaders.REDELIVERED
@Nullable public java.lang.String getType()
type
.JmsHeaders.TYPE
@Nullable 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.