Interface Evaluator
- All Known Implementing Classes:
AndEvaluator,EqualEvaluator,MatchEvaluator,NotEvaluator,OrEvaluator
public interface Evaluator
This is the base interface for evaluating boolean expressions. It executes a boolean
expression and return true or false based on the result of executing the boolean expression.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanevaluate(EvaluatorContext context) Evaluate a boolean expressiongetName()Name of the evaluator
-
Method Details
-
evaluate
Evaluate a boolean expression- Parameters:
context- hold the information about the HTTP request- Returns:
- result of evaluating the boolean expression
- Throws:
EvaluatorException- if an error occurs while evaluating the HTTP request
-
getName
String getName()Name of the evaluator- Returns:
- name of the evaluator
-