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>
MessageMatcher that will return true if all of the passed in
MessageMatcher instances match.- Since:
- 4.0
-
Field Summary
Fields inherited from class org.springframework.security.messaging.util.matcher.AbstractMessageMatcherComposite
logger, LOGGERFields inherited from interface org.springframework.security.messaging.util.matcher.MessageMatcher
ANY_MESSAGE -
Constructor Summary
ConstructorsConstructorDescriptionAndMessageMatcher(List<MessageMatcher<T>> messageMatchers) Creates a new instanceAndMessageMatcher(MessageMatcher<T>... messageMatchers) Creates a new instance -
Method Summary
Methods inherited from class org.springframework.security.messaging.util.matcher.AbstractMessageMatcherComposite
getMessageMatchers, toString
-
Constructor Details
-
AndMessageMatcher
Creates a new instance- Parameters:
messageMatchers- theMessageMatcherinstances to try
-
AndMessageMatcher
Creates a new instance- Parameters:
messageMatchers- theMessageMatcherinstances to try
-
-
Method Details
-
matches
Description copied from interface:MessageMatcherReturns true if theMessagematches, else false- Parameters:
message- theMessageto match on- Returns:
- true if the
Messagematches, else false
-