public class AmqpMessageHeaderAccessor
extends org.springframework.messaging.support.NativeMessageHeaderAccessor
MessageHeaderAccessor
implementation giving access to AMQP-specific headers.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
PRIORITY |
Modifier | Constructor and Description |
---|---|
protected |
AmqpMessageHeaderAccessor(java.util.Map<java.lang.String,java.util.List<java.lang.String>> nativeHeaders) |
protected |
AmqpMessageHeaderAccessor(org.springframework.messaging.Message<?> message) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAppId() |
java.lang.String |
getClusterId() |
java.lang.String |
getConsumerQueue() |
java.lang.String |
getConsumerTag() |
java.lang.String |
getContentEncoding() |
java.lang.Long |
getContentLength() |
org.springframework.util.MimeType |
getContentType() |
java.lang.String |
getCorrelationId() |
java.lang.String |
getCorrelationIdString()
Deprecated.
- use
getCorrelationId() . |
MessageDeliveryMode |
getDeliveryMode() |
java.lang.Long |
getDeliveryTag() |
java.lang.String |
getExpiration() |
java.lang.Integer |
getMessageCount() |
java.lang.String |
getMessageId() |
java.lang.Integer |
getPriority() |
MessageDeliveryMode |
getReceivedDeliveryMode() |
java.lang.String |
getReceivedExchange() |
java.lang.String |
getReceivedRoutingKey() |
java.lang.String |
getReceivedUserId() |
java.lang.Boolean |
getRedelivered() |
java.lang.String |
getReplyTo() |
java.lang.Long |
getTimestamp() |
java.lang.String |
getType() |
java.lang.String |
getUserId() |
protected void |
verifyType(java.lang.String headerName,
java.lang.Object headerValue) |
static AmqpMessageHeaderAccessor |
wrap(org.springframework.messaging.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 java.lang.String PRIORITY
protected AmqpMessageHeaderAccessor(java.util.Map<java.lang.String,java.util.List<java.lang.String>> nativeHeaders)
protected AmqpMessageHeaderAccessor(org.springframework.messaging.Message<?> message)
public static AmqpMessageHeaderAccessor wrap(org.springframework.messaging.Message<?> message)
AmqpMessageHeaderAccessor
from the headers of an existing message.message
- the Message
to be wrapped for this
MessageHeaderAccessor
.AmqpMessageHeaderAccessor
instance.protected void verifyType(java.lang.String headerName, java.lang.Object headerValue)
verifyType
in class org.springframework.messaging.support.MessageHeaderAccessor
public java.lang.String getAppId()
public java.lang.String getClusterId()
public java.lang.String getContentEncoding()
public java.lang.Long getContentLength()
public org.springframework.util.MimeType getContentType()
getContentType
in class org.springframework.messaging.support.MessageHeaderAccessor
public java.lang.String getCorrelationId()
@Deprecated public java.lang.String getCorrelationIdString()
getCorrelationId()
.public MessageDeliveryMode getDeliveryMode()
public MessageDeliveryMode getReceivedDeliveryMode()
public java.lang.Long getDeliveryTag()
public java.lang.String getExpiration()
public java.lang.Integer getMessageCount()
public java.lang.String getMessageId()
public java.lang.Integer getPriority()
public java.lang.String getReceivedExchange()
public java.lang.String getReceivedRoutingKey()
public java.lang.String getReceivedUserId()
public java.lang.Boolean getRedelivered()
public java.lang.String getReplyTo()
public java.lang.Long getTimestamp()
getTimestamp
in class org.springframework.messaging.support.MessageHeaderAccessor
public java.lang.String getType()
public java.lang.String getUserId()
public java.lang.String getConsumerTag()
public java.lang.String getConsumerQueue()