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