Class RewriteCond.PatternCondition
- java.lang.Object
-
- org.apache.catalina.valves.rewrite.RewriteCond.Condition
-
- org.apache.catalina.valves.rewrite.RewriteCond.PatternCondition
-
- Enclosing class:
- RewriteCond
public static class RewriteCond.PatternCondition extends RewriteCond.Condition
Pattern-based condition.
-
-
Field Summary
Fields Modifier and Type Field Description java.util.regex.PatternpatternThe 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 booleanevaluate(java.lang.String value, Resolver resolver)Evaluate the condition.java.util.regex.MatchergetMatcher()Returns the last matcher used for evaluation.
-
-
-
Method Detail
-
evaluate
public boolean evaluate(java.lang.String value, Resolver resolver)Description copied from class:RewriteCond.ConditionEvaluate the condition.- Specified by:
evaluatein classRewriteCond.Condition- Parameters:
value- The value to evaluateresolver- The resolver- Returns:
trueif the condition is met
-
getMatcher
public java.util.regex.Matcher getMatcher()
Returns the last matcher used for evaluation.- Returns:
- the matcher
-
-