public class SimpMessageTypeMatcher extends java.lang.Object implements MessageMatcher<java.lang.Object>
MessageMatcher that matches if the provided Message has a type that
is the same as the SimpMessageType that was specified in the constructor.ANY_MESSAGE| Constructor and Description |
|---|
SimpMessageTypeMatcher(org.springframework.messaging.simp.SimpMessageType typeToMatch)
Creates a new instance
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object other) |
int |
hashCode() |
boolean |
matches(org.springframework.messaging.Message<? extends java.lang.Object> message)
Returns true if the
Message matches, else false |
java.lang.String |
toString() |
public SimpMessageTypeMatcher(org.springframework.messaging.simp.SimpMessageType typeToMatch)
typeToMatch - the SimpMessageType that will result in a match. Cannot
be null.public boolean matches(org.springframework.messaging.Message<? extends java.lang.Object> message)
MessageMatcherMessage matches, else falsematches in interface MessageMatcher<java.lang.Object>message - the Message to match onMessage matches, else falsepublic boolean equals(java.lang.Object other)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object