public class SimpMessageMappingInfo extends java.lang.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(java.lang.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() |
java.lang.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 with@Nullable public 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>
public boolean equals(java.lang.Object other)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object