类 SimpMessageMappingInfo
- java.lang.Object
- org.springframework.messaging.simp.SimpMessageMappingInfo
- 所有已实现的接口:
MessageCondition<SimpMessageMappingInfo>
public class SimpMessageMappingInfo extends Object implements MessageCondition<SimpMessageMappingInfo>
MessageCondition
for SImple Messaging Protocols. Encapsulates the following request mapping conditions:- 从以下版本开始:
- 4.0
- 作者:
- Rossen Stoyanchev
构造器概要
构造器 构造器 说明 SimpMessageMappingInfo(SimpMessageTypeMessageCondition messageTypeMessageCondition, DestinationPatternsMessageCondition destinationConditions)
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 SimpMessageMappingInfo
combine(SimpMessageMappingInfo other)
Define the rules for combining this condition with another.int
compareTo(SimpMessageMappingInfo other, Message<?> message)
Compare this condition to another in the context of a specific message.boolean
equals(Object other)
DestinationPatternsMessageCondition
getDestinationConditions()
SimpMessageMappingInfo
getMatchingCondition(Message<?> message)
Check if this condition matches the given Message and returns a potentially new condition with content tailored to the current message.SimpMessageTypeMessageCondition
getMessageTypeMessageCondition()
int
hashCode()
String
toString()
构造器详细资料
SimpMessageMappingInfo
public SimpMessageMappingInfo(SimpMessageTypeMessageCondition messageTypeMessageCondition, DestinationPatternsMessageCondition destinationConditions)
方法详细资料
getMessageTypeMessageCondition
public SimpMessageTypeMessageCondition getMessageTypeMessageCondition()
getDestinationConditions
public DestinationPatternsMessageCondition getDestinationConditions()
combine
public SimpMessageMappingInfo combine(SimpMessageMappingInfo other)
从接口复制的说明:MessageCondition
Define the rules for combining this condition with another. For example combining type- and method-level conditions.- 指定者:
combine
在接口中MessageCondition<SimpMessageMappingInfo>
- 参数:
other
- the condition to combine with- 返回:
- the resulting message condition
getMatchingCondition
@Nullable public SimpMessageMappingInfo getMatchingCondition(Message<?> message)
从接口复制的说明:MessageCondition
Check if this condition matches the given Message and returns a potentially new condition with content tailored to the current message. For example a condition with destination patterns might return a new condition with sorted, matching patterns only.- 指定者:
getMatchingCondition
在接口中MessageCondition<SimpMessageMappingInfo>
- 返回:
- a condition instance in case of a match; or
null
if there is no match.
compareTo
public int compareTo(SimpMessageMappingInfo other, Message<?> message)
从接口复制的说明:MessageCondition
Compare this condition to another in the context of a specific message. It is assumed both instances have been obtained viaMessageCondition.getMatchingCondition(Message)
to ensure they have content relevant to current message only.- 指定者:
compareTo
在接口中MessageCondition<SimpMessageMappingInfo>