Class Substitution.ServerVariableElement

    • Field Summary

      Fields 
      Modifier and Type Field Description
      java.lang.String key
      The 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.String evaluate​(java.util.regex.Matcher rule, java.util.regex.Matcher cond, Resolver resolver)
      Evaluates this element against the given matchers and resolver.
      • Methods inherited from class java.lang.Object

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

      • key

        public java.lang.String key
        The server variable name to resolve.
    • Constructor Detail

      • ServerVariableElement

        public ServerVariableElement()
        Constructs a new ServerVariableElement.
    • 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.SubstitutionElement
        Evaluates this element against the given matchers and resolver.
        Specified by:
        evaluate in class Substitution.SubstitutionElement
        Parameters:
        rule - the rewrite rule matcher
        cond - the condition matcher
        resolver - the property resolver
        Returns:
        the evaluated string