public abstract class ExpressionHandler extends Object
| Constructor and Description |
|---|
ExpressionHandler(Expression expression) |
| Modifier and Type | Method and Description |
|---|---|
abstract String |
evaluate(BusinessTransaction btxn,
Node node,
Direction direction,
Map<String,?> headers,
Object[] values)
This method evaluates the supplied information against this
expression.
|
Expression |
getExpression() |
List<Issue> |
getIssues() |
abstract void |
init(Processor processor,
ProcessorAction action,
boolean predicate)
This method initialises the expression handler.
|
boolean |
isUsesContent()
This method indicates whether the expression uses content.
|
boolean |
isUsesHeaders()
This method indicates whether the expression uses headers.
|
void |
setExpression(Expression expression) |
void |
setIssues(List<Issue> issues) |
abstract boolean |
test(BusinessTransaction btxn,
Node node,
Direction direction,
Map<String,?> headers,
Object[] values)
This method evaluates the supplied information against this
expression representing a predicate.
|
public ExpressionHandler(Expression expression)
public Expression getExpression()
public void setExpression(Expression expression)
expression - the expression to setpublic boolean isUsesHeaders()
public boolean isUsesContent()
public abstract void init(Processor processor, ProcessorAction action, boolean predicate)
processor - The processoraction - The actionpredicate - Whether the expression is a predicatepublic abstract boolean test(BusinessTransaction btxn, Node node, Direction direction, Map<String,?> headers, Object[] values)
btxn - The business transactionnode - The nodedirection - The directionheaders - The optional headersvalues - The valuespublic abstract String evaluate(BusinessTransaction btxn, Node node, Direction direction, Map<String,?> headers, Object[] values)
btxn - The business transactionnode - The nodedirection - The directionheaders - The optional headersvalues - The valuesCopyright © 2015–2016 Red Hat, Inc.. All rights reserved.