Class MatchEvaluator
java.lang.Object
org.apache.synapse.commons.evaluators.MatchEvaluator
- All Implemented Interfaces:
Evaluator
This evaluator uses regular expressions to match a given HTTP request.
<match type="header | param | url" source="" regex=""/>
The source is used to extract the HTTP header or URL param
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanevaluate(EvaluatorContext context) Evaluate a boolean expressiongetName()Name of the evaluatorgetRegex()voidvoidsetTextRetriever(SourceTextRetriever textRetriever)
-
Constructor Details
-
MatchEvaluator
public MatchEvaluator()
-
-
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 -
getRegex
-
setRegex
-
getTextRetriever
-
setTextRetriever
-