Class OrMessageMatcher<T>
- java.lang.Object
-
- org.springframework.security.messaging.util.matcher.OrMessageMatcher<T>
-
- All Implemented Interfaces:
MessageMatcher<T>
public final class OrMessageMatcher<T> extends java.lang.Object
MessageMatcher
that will return true if any of the passed inMessageMatcher
instances match.- Since:
- 4.0
-
-
Field Summary
Fields Modifier and Type Field Description protected org.apache.commons.logging.Log
LOGGER
-
Fields inherited from interface org.springframework.security.messaging.util.matcher.MessageMatcher
ANY_MESSAGE
-
-
Constructor Summary
Constructors Constructor Description OrMessageMatcher(java.util.List<MessageMatcher<T>> messageMatchers)
Creates a new instanceOrMessageMatcher(MessageMatcher<T>... messageMatchers)
Creates a new instance
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<MessageMatcher<T>>
getMessageMatchers()
boolean
matches(org.springframework.messaging.Message<? extends T> message)
Returns true if theMessage
matches, else falsejava.lang.String
toString()
-
-
-
Constructor Detail
-
OrMessageMatcher
public OrMessageMatcher(java.util.List<MessageMatcher<T>> messageMatchers)
Creates a new instance- Parameters:
messageMatchers
- theMessageMatcher
instances to try
-
OrMessageMatcher
@SafeVarargs public OrMessageMatcher(MessageMatcher<T>... messageMatchers)
Creates a new instance- Parameters:
messageMatchers
- theMessageMatcher
instances to try
-
-
Method Detail
-
matches
public boolean matches(org.springframework.messaging.Message<? extends T> message)
Description copied from interface:MessageMatcher
Returns true if theMessage
matches, else false- Parameters:
message
- theMessage
to match on- Returns:
- true if the
Message
matches, else false
-
getMessageMatchers
public java.util.List<MessageMatcher<T>> getMessageMatchers()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-