Package org.springframework.amqp.support
Class AmqpMessageHeaderAccessor
- java.lang.Object
-
- org.springframework.messaging.support.MessageHeaderAccessor
-
- org.springframework.messaging.support.NativeMessageHeaderAccessor
-
- org.springframework.amqp.support.AmqpMessageHeaderAccessor
-
public class AmqpMessageHeaderAccessor extends NativeMessageHeaderAccessor
AMessageHeaderAccessor
implementation giving access to AMQP-specific headers.- Since:
- 1.4
- Author:
- Stephane Nicoll, Gary Russell
-
-
Field Summary
Fields Modifier and Type Field Description static String
PRIORITY
-
Fields inherited from class org.springframework.messaging.support.NativeMessageHeaderAccessor
NATIVE_HEADERS
-
Fields inherited from class org.springframework.messaging.support.MessageHeaderAccessor
DEFAULT_CHARSET
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AmqpMessageHeaderAccessor(Map<String,List<String>> nativeHeaders)
protected
AmqpMessageHeaderAccessor(Message<?> message)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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 aAmqpMessageHeaderAccessor
from the headers of an existing message.-
Methods inherited from class org.springframework.messaging.support.NativeMessageHeaderAccessor
addNativeHeader, addNativeHeaders, containsNativeHeader, copyHeaders, copyHeadersIfAbsent, getFirstNativeHeader, getFirstNativeHeader, getNativeHeader, getNativeHeaders, removeNativeHeader, setImmutable, setNativeHeader, setNativeHeaderValues, toNativeHeaderMap
-
Methods inherited from class org.springframework.messaging.support.MessageHeaderAccessor
createAccessor, getAccessor, 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
-
-
-
-
Field Detail
-
PRIORITY
public static final String PRIORITY
- See Also:
- Constant Field Values
-
-
Method Detail
-
wrap
public static AmqpMessageHeaderAccessor wrap(Message<?> message)
Create aAmqpMessageHeaderAccessor
from the headers of an existing message.- Parameters:
message
- theMessage
to be wrapped for thisMessageHeaderAccessor
.- Returns:
- the
AmqpMessageHeaderAccessor
instance.
-
verifyType
protected void verifyType(String headerName, Object headerValue)
- Overrides:
verifyType
in classMessageHeaderAccessor
-
getAppId
public String getAppId()
-
getClusterId
public String getClusterId()
-
getContentEncoding
public String getContentEncoding()
-
getContentLength
public Long getContentLength()
-
getContentType
public MimeType getContentType()
- Overrides:
getContentType
in classMessageHeaderAccessor
-
getCorrelationId
public String getCorrelationId()
-
getDeliveryMode
public MessageDeliveryMode getDeliveryMode()
-
getReceivedDeliveryMode
public MessageDeliveryMode getReceivedDeliveryMode()
-
getDeliveryTag
public Long getDeliveryTag()
-
getExpiration
public String getExpiration()
-
getMessageCount
public Integer getMessageCount()
-
getMessageId
public String getMessageId()
-
getPriority
public Integer getPriority()
-
getReceivedExchange
public String getReceivedExchange()
-
getReceivedRoutingKey
public String getReceivedRoutingKey()
-
getReceivedUserId
public String getReceivedUserId()
-
getRedelivered
public Boolean getRedelivered()
-
getReplyTo
public String getReplyTo()
-
getTimestamp
public Long getTimestamp()
- Overrides:
getTimestamp
in classMessageHeaderAccessor
-
getType
public String getType()
-
getUserId
public String getUserId()
-
getConsumerTag
public String getConsumerTag()
-
getConsumerQueue
public String getConsumerQueue()
-
-