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
A
MessageHeaderAccessor
implementation giving access to AMQP-specific headers.- Since:
- 1.4
- Author:
- Stephane Nicoll, Gary Russell
-
Field Summary
Fields inherited from class org.springframework.messaging.support.NativeMessageHeaderAccessor
NATIVE_HEADERS
Fields inherited from class org.springframework.messaging.support.MessageHeaderAccessor
DEFAULT_CHARSET
-
Constructor Summary
ModifierConstructorDescriptionprotected
AmqpMessageHeaderAccessor
(Map<String, List<String>> nativeHeaders) protected
AmqpMessageHeaderAccessor
(Message<?> message) -
Method Summary
Modifier and TypeMethodDescriptiongetAppId()
getType()
protected void
verifyType
(String headerName, Object headerValue) static AmqpMessageHeaderAccessor
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 Details
-
PRIORITY
- See Also:
-
-
Constructor Details
-
AmqpMessageHeaderAccessor
-
AmqpMessageHeaderAccessor
-
-
Method Details
-
wrap
Create aAmqpMessageHeaderAccessor
from the headers of an existing message.- Parameters:
message
- theMessage
to be wrapped for thisMessageHeaderAccessor
.- Returns:
- the
AmqpMessageHeaderAccessor
instance.
-
verifyType
- Overrides:
verifyType
in classMessageHeaderAccessor
-
getAppId
-
getClusterId
-
getContentEncoding
-
getContentLength
-
getContentType
- Overrides:
getContentType
in classMessageHeaderAccessor
-
getCorrelationId
-
getDeliveryMode
-
getReceivedDeliveryMode
-
getDeliveryTag
-
getExpiration
-
getMessageCount
-
getMessageId
-
getPriority
-
getReceivedExchange
-
getReceivedRoutingKey
-
getReceivedUserId
-
getRedelivered
-
getReplyTo
-
getTimestamp
- Overrides:
getTimestamp
in classMessageHeaderAccessor
-
getType
-
getUserId
-
getConsumerTag
-
getConsumerQueue
-