public class AmqpMessageHeaderAccessor extends NativeMessageHeaderAccessor
MessageHeaderAccessor
implementation giving access to AMQP-specific headers.Modifier and Type | Field and Description |
---|---|
static String |
PRIORITY |
NATIVE_HEADERS
DEFAULT_CHARSET
Modifier | Constructor and Description |
---|---|
protected |
AmqpMessageHeaderAccessor(Map<String,List<String>> nativeHeaders) |
protected |
AmqpMessageHeaderAccessor(Message<?> message) |
Modifier and Type | Method and Description |
---|---|
String |
getAppId() |
String |
getClusterId() |
String |
getConsumerQueue() |
String |
getConsumerTag() |
String |
getContentEncoding() |
Long |
getContentLength() |
MimeType |
getContentType() |
String |
getCorrelationId() |
MessageDeliveryMode |
getDeliveryMode() |
Long |
getDeliveryTag() |
String |
getExpiration() |
Integer |
getMessageCount() |
String |
getMessageId() |
Integer |
getPriority() |
MessageDeliveryMode |
getReceivedDeliveryMode() |
String |
getReceivedExchange() |
String |
getReceivedRoutingKey() |
String |
getReceivedUserId() |
Boolean |
getRedelivered() |
String |
getReplyTo() |
Long |
getTimestamp() |
String |
getType() |
String |
getUserId() |
protected void |
verifyType(String headerName,
Object headerValue) |
static AmqpMessageHeaderAccessor |
wrap(Message<?> message)
Create a
AmqpMessageHeaderAccessor from the headers of an existing message. |
addNativeHeader, addNativeHeaders, containsNativeHeader, getFirstNativeHeader, getFirstNativeHeader, getNativeHeader, getNativeHeaders, removeNativeHeader, setImmutable, setNativeHeader, toNativeHeaderMap
copyHeaders, copyHeadersIfAbsent, createAccessor, getAccessor, getAccessor, 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
public static final String PRIORITY
protected AmqpMessageHeaderAccessor(Map<String,List<String>> nativeHeaders)
protected AmqpMessageHeaderAccessor(Message<?> message)
public static AmqpMessageHeaderAccessor wrap(Message<?> message)
AmqpMessageHeaderAccessor
from the headers of an existing message.message
- the Message
to be wrapped for this
MessageHeaderAccessor
.AmqpMessageHeaderAccessor
instance.protected void verifyType(String headerName, Object headerValue)
verifyType
in class MessageHeaderAccessor
public String getAppId()
public String getClusterId()
public String getContentEncoding()
public Long getContentLength()
public MimeType getContentType()
getContentType
in class MessageHeaderAccessor
public String getCorrelationId()
public MessageDeliveryMode getDeliveryMode()
public MessageDeliveryMode getReceivedDeliveryMode()
public Long getDeliveryTag()
public String getExpiration()
public Integer getMessageCount()
public String getMessageId()
public Integer getPriority()
public String getReceivedExchange()
public String getReceivedRoutingKey()
public String getReceivedUserId()
public Boolean getRedelivered()
public String getReplyTo()
public Long getTimestamp()
getTimestamp
in class MessageHeaderAccessor
public String getType()
public String getUserId()
public String getConsumerTag()
public String getConsumerQueue()