public abstract class ExpressionHandler extends Object
| Constructor and Description |
|---|
ExpressionHandler(Expression expression) |
| Modifier and Type | Method and Description |
|---|---|
abstract String |
evaluate(Trace trace,
Node node,
Direction direction,
Map<String,?> headers,
Object[] values)
This method evaluates the supplied information against this
expression.
|
Expression |
getExpression() |
abstract List<ConfigMessage> |
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) |
abstract boolean |
test(Trace trace,
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 List<ConfigMessage> init(Processor processor, ProcessorAction action, boolean predicate)
processor - The processoraction - The actionpredicate - Whether the expression is a predicatepublic abstract boolean test(Trace trace, Node node, Direction direction, Map<String,?> headers, Object[] values)
trace - The tracenode - The nodedirection - The directionheaders - The optional headersvalues - The valuespublic abstract String evaluate(Trace trace, Node node, Direction direction, Map<String,?> headers, Object[] values)
trace - The tracenode - The nodedirection - The directionheaders - The optional headersvalues - The valuesCopyright © 2015–2017 Red Hat, Inc.. All rights reserved.