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>
AMessageMatcher
that matches if the providedMessage
has a type that is the same as theSimpMessageType
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
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 boolean
equals(java.lang.Object other)
int
hashCode()
boolean
matches(org.springframework.messaging.Message<?> message)
Returns true if theMessage
matches, else falsejava.lang.String
toString()
-
-
-
Method Detail
-
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<java.lang.Object>
- Parameters:
message
- theMessage
to match on- Returns:
- true if the
Message
matches, else false
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-