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
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.springframework.security.messaging.util.matcher.MessageMatcher
MessageMatcher.MatchResult -
Field Summary
Fields inherited from interface org.springframework.security.messaging.util.matcher.MessageMatcher
ANY_MESSAGE -
Constructor Summary
ConstructorsConstructorDescriptionSimpMessageTypeMatcher(org.springframework.messaging.simp.SimpMessageType typeToMatch) Creates a new instance -
Method Summary
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.springframework.security.messaging.util.matcher.MessageMatcher
matcher
-
Constructor Details
-
SimpMessageTypeMatcher
public SimpMessageTypeMatcher(org.springframework.messaging.simp.SimpMessageType typeToMatch) Creates a new instance- Parameters:
typeToMatch- theSimpMessageTypethat will result in a match. Cannot be null.
-
-
Method Details
-
matches
public boolean matches(org.springframework.messaging.Message<?> message) Description copied from interface:MessageMatcherReturns true if theMessagematches, else false- Specified by:
matchesin interfaceMessageMatcher<Object>- Parameters:
message- theMessageto match on- Returns:
- true if the
Messagematches, else false
-
equals
-
hashCode
public int hashCode() -
toString
-