public final class AndMessageMatcher<T>
extends java.lang.Object
MessageMatcher that will return true if all of the passed in
MessageMatcher instances match.| Modifier and Type | Field and Description |
|---|---|
protected org.apache.commons.logging.Log |
LOGGER |
ANY_MESSAGE| Constructor and Description |
|---|
AndMessageMatcher(java.util.List<MessageMatcher<T>> messageMatchers)
Creates a new instance
|
AndMessageMatcher(MessageMatcher<T>... messageMatchers)
Creates a new instance
|
| Modifier and Type | Method and Description |
|---|---|
java.util.List<MessageMatcher<T>> |
getMessageMatchers() |
boolean |
matches(org.springframework.messaging.Message<? extends T> message)
Returns true if the
Message matches, else false |
java.lang.String |
toString() |
public AndMessageMatcher(java.util.List<MessageMatcher<T>> messageMatchers)
messageMatchers - the MessageMatcher instances to try@SafeVarargs public AndMessageMatcher(MessageMatcher<T>... messageMatchers)
messageMatchers - the MessageMatcher instances to trypublic boolean matches(org.springframework.messaging.Message<? extends T> message)
MessageMatcherMessage matches, else falsemessage - the Message to match onMessage matches, else falsepublic java.util.List<MessageMatcher<T>> getMessageMatchers()
public java.lang.String toString()
toString in class java.lang.Object