Class SimpMessageTypeMatcher
- java.lang.Object
-
- org.springframework.security.messaging.util.matcher.SimpMessageTypeMatcher
-
- All Implemented Interfaces:
MessageMatcher<java.lang.Object>
public class SimpMessageTypeMatcher extends java.lang.Object implements MessageMatcher<java.lang.Object>
AMessageMatcherthat matches if the providedMessagehas a type that is the same as theSimpMessageTypethat 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
Constructors Constructor Description SimpMessageTypeMatcher(org.springframework.messaging.simp.SimpMessageType typeToMatch)Creates a new instance
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object other)inthashCode()booleanmatches(org.springframework.messaging.Message<?> message)Returns true if theMessagematches, else falsejava.lang.StringtoString()
-
-
-
Method Detail
-
matches
public boolean matches(org.springframework.messaging.Message<?> message)
Description copied from interface:MessageMatcherReturns true if theMessagematches, else false- Specified by:
matchesin interfaceMessageMatcher<java.lang.Object>- Parameters:
message- theMessageto match on- Returns:
- true if the
Messagematches, else false
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-