public class JmsMessageHeaderAccessor extends NativeMessageHeaderAccessor
MessageHeaderAccessor
implementation giving access to JMS-specific headers.NATIVE_HEADERS
DEFAULT_CHARSET
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
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, addNativeHeaders, containsNativeHeader, copyHeaders, copyHeadersIfAbsent, getFirstNativeHeader, getFirstNativeHeader, getNativeHeader, getNativeHeaders, removeNativeHeader, setImmutable, setNativeHeader, setNativeHeaderValues, toNativeHeaderMap
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
protected JmsMessageHeaderAccessor(Message<?> message)
@Nullable public String getCorrelationId()
correlationId
.JmsHeaders.CORRELATION_ID
@Nullable public Destination getDestination()
destination
.JmsHeaders.DESTINATION
@Nullable public Integer getDeliveryMode()
delivery mode
.JmsHeaders.DELIVERY_MODE
@Nullable public Long getExpiration()
expiration
.JmsHeaders.EXPIRATION
@Nullable public String getMessageId()
message id
.JmsHeaders.MESSAGE_ID
@Nullable public Integer getPriority()
priority
.JmsHeaders.PRIORITY
@Nullable public Destination getReplyTo()
reply to
.JmsHeaders.REPLY_TO
@Nullable public Boolean getRedelivered()
redelivered
flag.JmsHeaders.REDELIVERED
@Nullable public String getType()
type
.JmsHeaders.TYPE
@Nullable public Long getTimestamp()
timestamp
.getTimestamp
in class MessageHeaderAccessor
JmsHeaders.TIMESTAMP
public static JmsMessageHeaderAccessor wrap(Message<?> message)
JmsMessageHeaderAccessor
from the headers of an existing message.