Class SimpMessageMappingInfo
java.lang.Object
org.springframework.messaging.simp.SimpMessageMappingInfo
- All Implemented Interfaces:
- MessageCondition<SimpMessageMappingInfo>
public class SimpMessageMappingInfo
extends Object
implements MessageCondition<SimpMessageMappingInfo>
MessageCondition for Simple Messaging Protocols. Encapsulates the following
 request mapping conditions:
 - Since:
- 4.0
- Author:
- Rossen Stoyanchev
- 
Constructor SummaryConstructorsConstructorDescriptionSimpMessageMappingInfo(SimpMessageTypeMessageCondition messageTypeMessageCondition, DestinationPatternsMessageCondition destinationConditions) 
- 
Method SummaryModifier and TypeMethodDescriptioncombine(SimpMessageMappingInfo other) Define the rules for combining this condition with another.intcompareTo(SimpMessageMappingInfo other, Message<?> message) Compare this condition to another in the context of a specific message.booleangetMatchingCondition(Message<?> message) Check if this condition matches the given Message and returns a potentially new condition with content tailored to the current message.inthashCode()toString()
- 
Constructor Details- 
SimpMessageMappingInfopublic SimpMessageMappingInfo(SimpMessageTypeMessageCondition messageTypeMessageCondition, DestinationPatternsMessageCondition destinationConditions) 
 
- 
- 
Method Details- 
getMessageTypeMessageCondition
- 
getDestinationConditions
- 
combineDescription copied from interface:MessageConditionDefine the rules for combining this condition with another. For example combining type- and method-level conditions.- Specified by:
- combinein interface- MessageCondition<SimpMessageMappingInfo>
- Parameters:
- other- the condition to combine with
- Returns:
- the resulting message condition
 
- 
getMatchingConditionDescription copied from interface:MessageConditionCheck 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.- Specified by:
- getMatchingConditionin interface- MessageCondition<SimpMessageMappingInfo>
- Returns:
- a condition instance in case of a match; or nullif there is no match.
 
- 
compareToDescription copied from interface:MessageConditionCompare 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.- Specified by:
- compareToin interface- MessageCondition<SimpMessageMappingInfo>
 
- 
equals
- 
hashCode
- 
toString
 
-