Class RegularExpressionPredicate

  • All Implemented Interfaces:
    Predicate

    public class RegularExpressionPredicate
    extends java.lang.Object
    implements Predicate
    A predicate that does a regex match against an exchange.

    By default this match is done against the relative URI, however it is possible to set it to match against other exchange attributes.

    Author:
    Stuart Douglas
    • Constructor Detail

      • RegularExpressionPredicate

        public RegularExpressionPredicate​(java.lang.String regex,
                                          ExchangeAttribute matchAttribute,
                                          boolean requireFullMatch,
                                          boolean caseSensitive)
      • RegularExpressionPredicate

        public RegularExpressionPredicate​(java.lang.String regex,
                                          ExchangeAttribute matchAttribute,
                                          boolean requireFullMatch)
      • RegularExpressionPredicate

        public RegularExpressionPredicate​(java.lang.String regex,
                                          ExchangeAttribute matchAttribute)
    • Method Detail

      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object