Class OrEvaluator
java.lang.Object
org.apache.synapse.commons.evaluators.OrEvaluator
- All Implemented Interfaces:
Evaluator
This encapsulates two or more boolean expressions. This acts as the "or"
boolean operator. It executes all the boolean expressions and apply the boolean
OR operator and return the result of this boolean operation.
<or>
two or more evaluators
</or>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanevaluate(EvaluatorContext context) Evaluate a boolean expressiongetName()Name of the evaluatorvoidsetEvaluators(Evaluator[] evaluators)
-
Constructor Details
-
OrEvaluator
public OrEvaluator()
-
-
Method Details
-
evaluate
Description copied from interface:EvaluatorEvaluate a boolean expression- Specified by:
evaluatein interfaceEvaluator- 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
Description copied from interface:EvaluatorName of the evaluator -
setEvaluators
-
getEvaluators
-