Class AndMessageMatcher<T>

  • All Implemented Interfaces:
    MessageMatcher<T>

    public final class AndMessageMatcher<T>
    extends java.lang.Object
    MessageMatcher that will return true if all of the passed in MessageMatcher instances match.
    Since:
    4.0
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected org.apache.commons.logging.Log LOGGER  
    • 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 the Message matches, else false
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • LOGGER

        protected final org.apache.commons.logging.Log LOGGER
    • Constructor Detail

      • AndMessageMatcher

        public AndMessageMatcher​(java.util.List<MessageMatcher<T>> messageMatchers)
        Creates a new instance
        Parameters:
        messageMatchers - the MessageMatcher instances to try
      • AndMessageMatcher

        @SafeVarargs
        public AndMessageMatcher​(MessageMatcher<T>... messageMatchers)
        Creates a new instance
        Parameters:
        messageMatchers - the MessageMatcher instances to try
    • Method Detail

      • matches

        public boolean matches​(org.springframework.messaging.Message<? extends T> message)
        Description copied from interface: MessageMatcher
        Returns true if the Message matches, else false
        Parameters:
        message - the Message 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 class java.lang.Object