类 JmsMessageHeaderAccessor
- java.lang.Object
- org.springframework.messaging.support.MessageHeaderAccessor
- org.springframework.messaging.support.NativeMessageHeaderAccessor
- org.springframework.jms.support.JmsMessageHeaderAccessor
public class JmsMessageHeaderAccessor extends NativeMessageHeaderAccessor
AMessageHeaderAccessor
implementation giving access to JMS-specific headers.- 从以下版本开始:
- 4.1
- 作者:
- Stephane Nicoll
字段概要
从类继承的字段 org.springframework.messaging.support.NativeMessageHeaderAccessor
NATIVE_HEADERS
从类继承的字段 org.springframework.messaging.support.MessageHeaderAccessor
DEFAULT_CHARSET
构造器概要
构造器 限定符 构造器 说明 protected
JmsMessageHeaderAccessor(Map<String,List<String>> nativeHeaders)
protected
JmsMessageHeaderAccessor(Message<?> message)
方法概要
所有方法 静态方法 实例方法 具体方法 修饰符和类型 方法 说明 String
getCorrelationId()
Return thecorrelationId
.Integer
getDeliveryMode()
Return thedelivery mode
.Destination
getDestination()
Return thedestination
.Long
getExpiration()
Return the messageexpiration
.String
getMessageId()
Return themessage id
.Integer
getPriority()
Return thepriority
.Boolean
getRedelivered()
Return theredelivered
flag.Destination
getReplyTo()
Return thereply to
.Long
getTimestamp()
Return thetimestamp
.String
getType()
Return thetype
.static JmsMessageHeaderAccessor
wrap(Message<?> message)
Create aJmsMessageHeaderAccessor
from the headers of an existing message.从类继承的方法 org.springframework.messaging.support.NativeMessageHeaderAccessor
addNativeHeader, addNativeHeaders, containsNativeHeader, copyHeaders, copyHeadersIfAbsent, getFirstNativeHeader, getFirstNativeHeader, getNativeHeader, getNativeHeaders, removeNativeHeader, setImmutable, setNativeHeader, setNativeHeaderValues, toNativeHeaderMap
从类继承的方法 org.springframework.messaging.support.MessageHeaderAccessor
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
构造器详细资料
JmsMessageHeaderAccessor
protected JmsMessageHeaderAccessor(Map<String,List<String>> nativeHeaders)
JmsMessageHeaderAccessor
protected JmsMessageHeaderAccessor(Message<?> message)
方法详细资料
getCorrelationId
@Nullable public String getCorrelationId()
Return thecorrelationId
.
getDestination
@Nullable public Destination getDestination()
Return thedestination
.
getDeliveryMode
@Nullable public Integer getDeliveryMode()
Return thedelivery mode
.
getExpiration
@Nullable public Long getExpiration()
Return the messageexpiration
.
getMessageId
@Nullable public String getMessageId()
Return themessage id
.
getPriority
@Nullable public Integer getPriority()
Return thepriority
.- 另请参阅:
JmsHeaders.PRIORITY
getReplyTo
@Nullable public Destination getReplyTo()
Return thereply to
.- 另请参阅:
JmsHeaders.REPLY_TO
getRedelivered
@Nullable public Boolean getRedelivered()
Return theredelivered
flag.
getType
@Nullable public String getType()
Return thetype
.- 另请参阅:
JmsHeaders.TYPE
getTimestamp
@Nullable public Long getTimestamp()
Return thetimestamp
.
wrap
public static JmsMessageHeaderAccessor wrap(Message<?> message)
Create aJmsMessageHeaderAccessor
from the headers of an existing message.