Class Substitution.SubstitutionElement

java.lang.Object
org.apache.catalina.valves.rewrite.Substitution.SubstitutionElement
Direct Known Subclasses:
Substitution.MapElement, Substitution.RewriteCondBackReferenceElement, Substitution.RewriteRuleBackReferenceElement, Substitution.ServerVariableElement, Substitution.ServerVariableEnvElement, Substitution.ServerVariableHttpElement, Substitution.ServerVariableSslElement, Substitution.StaticElement
Enclosing class:
Substitution

public abstract static class Substitution.SubstitutionElement extends Object
Abstract base class for individual substitution elements.
  • Constructor Details

    • SubstitutionElement

      public SubstitutionElement()
      Constructs a new SubstitutionElement.
  • Method Details

    • evaluate

      public abstract String evaluate(Matcher rule, Matcher cond, Resolver resolver)
      Evaluates this element against the given matchers and resolver.
      Parameters:
      rule - the rewrite rule matcher
      cond - the condition matcher
      resolver - the property resolver
      Returns:
      the evaluated string