Class EqualEvaluator
java.lang.Object
org.apache.synapse.commons.evaluators.EqualEvaluator
- All Implemented Interfaces:
Evaluator
Try to see weather a part of the HTTP request is equal to the value provided.
If the values are equal retun true.
<equal type="header | param | url" source="" value=""/>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanevaluate(EvaluatorContext context) Evaluate a boolean expressiongetName()Name of the evaluatorgetValue()voidsetTextRetriever(SourceTextRetriever textRetriever) void
-
Constructor Details
-
EqualEvaluator
public EqualEvaluator()
-
-
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 -
setValue
-
setTextRetriever
-
getValue
-
getTextRetriever
-