Class AndMessageMatcher<T>
- java.lang.Object
-
- org.springframework.security.messaging.util.matcher.AbstractMessageMatcherComposite<T>
-
- org.springframework.security.messaging.util.matcher.AndMessageMatcher<T>
-
- All Implemented Interfaces:
MessageMatcher<T>
public final class AndMessageMatcher<T> extends AbstractMessageMatcherComposite<T>
MessageMatcher
that will return true if all of the passed inMessageMatcher
instances match.- Since:
- 4.0
-
-
Field Summary
-
Fields inherited from class org.springframework.security.messaging.util.matcher.AbstractMessageMatcherComposite
logger, LOGGER
-
Fields inherited from interface org.springframework.security.messaging.util.matcher.MessageMatcher
ANY_MESSAGE
-
-
Constructor Summary
Constructors Constructor Description AndMessageMatcher(java.util.List<MessageMatcher<T>> messageMatchers)
Creates a new instanceAndMessageMatcher(MessageMatcher<T>... messageMatchers)
Creates a new instance
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
matches(org.springframework.messaging.Message<? extends T> message)
Returns true if theMessage
matches, else false-
Methods inherited from class org.springframework.security.messaging.util.matcher.AbstractMessageMatcherComposite
getMessageMatchers, toString
-
-
-
-
Constructor Detail
-
AndMessageMatcher
public AndMessageMatcher(java.util.List<MessageMatcher<T>> messageMatchers)
Creates a new instance- Parameters:
messageMatchers
- theMessageMatcher
instances to try
-
AndMessageMatcher
@SafeVarargs public AndMessageMatcher(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
-
-