Class Substitution.ServerVariableElement
- java.lang.Object
-
- org.apache.catalina.valves.rewrite.Substitution.SubstitutionElement
-
- org.apache.catalina.valves.rewrite.Substitution.ServerVariableElement
-
- Enclosing class:
- Substitution
public static class Substitution.ServerVariableElement extends Substitution.SubstitutionElement
Substitution element that resolves a server variable.
-
-
Field Summary
Fields Modifier and Type Field Description java.lang.StringkeyThe server variable name to resolve.
-
Constructor Summary
Constructors Constructor Description ServerVariableElement()Constructs a new ServerVariableElement.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Stringevaluate(java.util.regex.Matcher rule, java.util.regex.Matcher cond, Resolver resolver)Evaluates this element against the given matchers and resolver.
-
-
-
Method Detail
-
evaluate
public java.lang.String evaluate(java.util.regex.Matcher rule, java.util.regex.Matcher cond, Resolver resolver)Description copied from class:Substitution.SubstitutionElementEvaluates this element against the given matchers and resolver.- Specified by:
evaluatein classSubstitution.SubstitutionElement- Parameters:
rule- the rewrite rule matchercond- the condition matcherresolver- the property resolver- Returns:
- the evaluated string
-
-