public class Parser extends Object
A Rule has a priority. If a HTTP request matches the Rule, parser returns the priority corresponding to that rule.
Here is the syntax of the configuration used to building the parser
<conditions [defualtPriority = "int"]>
<condition priority = "">
<and/> | <or> | <not> | <match> | <equal>
</condition>
</conditions>
| Constructor and Description |
|---|
Parser()
Create a parser with the defualt priority set to -1.
|
Parser(int defaultPriority)
Create a parser with a default priority.
|
| Modifier and Type | Method and Description |
|---|---|
void |
init(org.apache.axiom.om.OMElement conditions)
Build the parser from a given XML
|
int |
parse(EvaluatorContext context)
Parse the HTTP request against the condition set and return the matching priority.
|
public Parser()
public Parser(int defaultPriority)
defaultPriority - default prioritypublic int parse(EvaluatorContext context)
context - context used for holding the HTTP informationpublic void init(org.apache.axiom.om.OMElement conditions)
throws EvaluatorException
conditions - set of conditionsEvaluatorException - if the configuration is invalidCopyright © 2005-2017 Apache Software Foundation. All Rights Reserved.