RewriteCond.Condition (Apache Tomcat 9.0.120 API Documentation)
Description: declaration: package: org.apache.catalina.valves.rewrite, class: RewriteCond, class: Condition

# Class RewriteCond.Condition

java.lang.Object
org.apache.catalina.valves.rewrite.RewriteCond.Condition

Direct Known Subclasses:
  `RewriteCond.LexicalCondition, RewriteCond.PatternCondition, RewriteCond.ResourceCondition`

Enclosing class:
  `RewriteCond`

public abstract static class RewriteCond.Condition extends Object
Abstract condition interface.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `Condition()`
  Default constructor.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `abstract boolean`
  `evaluate(String value, Resolver resolver)`
  Evaluate the condition.

  ### Methods inherited from class Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### Condition

    public Condition()
    Default constructor.

- ## Method Details

  - ### evaluate

    public abstract boolean evaluate(String value, Resolver resolver)
    Evaluate the condition.
    Parameters:
      `value` - The value to evaluate
      `resolver` - The resolver
    Returns:
      `true` if the condition is met