Class SimpMessageTypeMatcher
java.lang.Object
org.springframework.security.messaging.util.matcher.SimpMessageTypeMatcher
- All Implemented Interfaces:
MessageMatcher<Object>
A
MessageMatcher
that matches if the provided Message
has a type that
is the same as the SimpMessageType
that was specified in the constructor.- Since:
- 4.0
-
Field Summary
Fields inherited from interface org.springframework.security.messaging.util.matcher.MessageMatcher
ANY_MESSAGE
-
Constructor Summary
ConstructorDescriptionSimpMessageTypeMatcher
(org.springframework.messaging.simp.SimpMessageType typeToMatch) Creates a new instance -
Method Summary
-
Constructor Details
-
SimpMessageTypeMatcher
public SimpMessageTypeMatcher(org.springframework.messaging.simp.SimpMessageType typeToMatch) Creates a new instance- Parameters:
typeToMatch
- theSimpMessageType
that will result in a match. Cannot be null.
-
-
Method Details
-
matches
public boolean matches(org.springframework.messaging.Message<?> message) Description copied from interface:MessageMatcher
Returns true if theMessage
matches, else false- Specified by:
matches
in interfaceMessageMatcher<Object>
- Parameters:
message
- theMessage
to match on- Returns:
- true if the
Message
matches, else false
-
equals
-
hashCode
public int hashCode() -
toString
-