public class SimpMessageMappingInfo extends java.lang.Object implements MessageCondition<SimpMessageMappingInfo>
MessageCondition
for SImple Messaging Protocols. Encapsulates the following
request mapping conditions:
Modifier and Type | Field and Description |
---|---|
private CompositeMessageCondition |
delegate |
Modifier | Constructor and Description |
---|---|
private |
SimpMessageMappingInfo(CompositeMessageCondition delegate) |
|
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() |
private final CompositeMessageCondition delegate
public SimpMessageMappingInfo(SimpMessageTypeMessageCondition messageTypeMessageCondition, DestinationPatternsMessageCondition destinationConditions)
private SimpMessageMappingInfo(CompositeMessageCondition delegate)
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