public class SimpMessageMappingInfo extends Object implements MessageCondition<SimpMessageMappingInfo>
Constructor and Description |
---|
SimpMessageMappingInfo(SimpMessageTypeMessageCondition messageTypeMessageCondition,
DestinationPatternsMessageCondition destinationConditions) |
Modifier and Type | Method and Description |
---|---|
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 obj) |
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() |
public SimpMessageMappingInfo(SimpMessageTypeMessageCondition messageTypeMessageCondition, DestinationPatternsMessageCondition destinationConditions)
public SimpMessageTypeMessageCondition getMessageTypeMessageCondition()
public DestinationPatternsMessageCondition getDestinationConditions()
public SimpMessageMappingInfo combine(SimpMessageMappingInfo other)
MessageCondition
combine
in interface MessageCondition<SimpMessageMappingInfo>
other
- the condition to combine withpublic SimpMessageMappingInfo getMatchingCondition(Message<?> message)
MessageCondition
getMatchingCondition
in interface MessageCondition<SimpMessageMappingInfo>
null
if there is no match.public int compareTo(SimpMessageMappingInfo other, Message<?> message)
MessageCondition
MessageCondition.getMatchingCondition(Message)
to ensure they have content
relevant to current message only.compareTo
in interface MessageCondition<SimpMessageMappingInfo>