public class SimpMessageTypeMatcher extends Object implements MessageMatcher<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
|
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 Object> message)
MessageMatcherMessage matches, else falsematches in interface MessageMatcher<Object>message - the Message to match onMessage matches, else false