Class RewriteCond.PatternCondition

    • Field Summary

      Fields 
      Modifier and Type Field Description
      java.util.regex.Pattern pattern
      The compiled pattern for matching.
    • Constructor Summary

      Constructors 
      Constructor Description
      PatternCondition()
      Default constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean evaluate​(java.lang.String value, Resolver resolver)
      Evaluate the condition.
      java.util.regex.Matcher getMatcher()
      Returns the last matcher used for evaluation.
      • Methods inherited from class java.lang.Object

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

      • pattern

        public java.util.regex.Pattern pattern
        The compiled pattern for matching.
    • Constructor Detail

      • PatternCondition

        public PatternCondition()
        Default constructor.
    • Method Detail

      • evaluate

        public boolean evaluate​(java.lang.String value,
                                Resolver resolver)
        Description copied from class: RewriteCond.Condition
        Evaluate the condition.
        Specified by:
        evaluate in class RewriteCond.Condition
        Parameters:
        value - The value to evaluate
        resolver - The resolver
        Returns:
        true if the condition is met
      • getMatcher

        public java.util.regex.Matcher getMatcher()
        Returns the last matcher used for evaluation.
        Returns:
        the matcher