public final class OrMessageMatcher<T> extends Object
MessageMatcher
that will return true if any 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 |
---|
OrMessageMatcher(List<MessageMatcher<T>> messageMatchers)
Creates a new instance
|
OrMessageMatcher(MessageMatcher<T>... messageMatchers)
Creates a new instance
|
Modifier and Type | Method and Description |
---|---|
List<MessageMatcher<T>> |
getMessageMatchers() |
boolean |
matches(org.springframework.messaging.Message<? extends T> message)
Returns true if the
Message matches, else false |
String |
toString() |
public OrMessageMatcher(List<MessageMatcher<T>> messageMatchers)
messageMatchers
- the MessageMatcher
instances to try@SafeVarargs public OrMessageMatcher(MessageMatcher<T>... messageMatchers)
messageMatchers
- the MessageMatcher
instances to trypublic boolean matches(org.springframework.messaging.Message<? extends T> message)
MessageMatcher
Message
matches, else falsemessage
- the Message
to match onMessage
matches, else falsepublic List<MessageMatcher<T>> getMessageMatchers()