public interface ExpressionLanguage
ExpressionRuntimeException
before being re-thrown.Modifier and Type | Method and Description |
---|---|
void |
enrich(String expression,
MuleMessage message,
TypedValue value)
Enriches a message
|
<T> T |
evaluate(String expression)
Execute the expression returning the result.
|
<T> T |
evaluate(String expression,
Map<String,Object> vars)
Execute the expression returning the result.
|
<T> T |
evaluate(String expression,
MuleEvent event)
Execute the expression returning the result.
|
<T> T |
evaluate(String expression,
MuleEvent event,
Map<String,Object> vars)
Execute the expression returning the result.
|
<T> T |
evaluate(String expression,
MuleMessage message)
Deprecated.
|
<T> T |
evaluate(String expression,
MuleMessage message,
Map<String,Object> vars)
Deprecated.
|
TypedValue |
evaluateTyped(String expression,
MuleMessage message) |
boolean |
isValid(String expression)
Validates the expression returning true is the expression is valid, false otherwise..
|
void |
validate(String expression)
Validates the expression returning.
|
<T> T evaluate(String expression)
T
- the return type expectedexpression
- the expression to be executed<T> T evaluate(String expression, Map<String,Object> vars)
T
- the return type expectedexpression
- the expression to be executedvars
- a map of expression variables<T> T evaluate(String expression, MuleEvent event)
T
- the return type expectedexpression
- the expression to be executedevent
- the current event being processed<T> T evaluate(String expression, MuleEvent event, Map<String,Object> vars)
T
- the return type expectedexpression
- the expression to be executedevent
- the current event being processedvars
- a map of expression variablesboolean isValid(String expression)
expression
- void validate(String expression) throws InvalidExpressionException
InvalidExpressionException
will be thrown is the All
implementors should should validate expression syntactically. Semantic validation is optional.expression
- InvalidExpressionException
@Deprecated <T> T evaluate(String expression, MuleMessage message)
evaluate(String, MuleEvent)
@Deprecated <T> T evaluate(String expression, MuleMessage message, Map<String,Object> vars)
evaluate(String, MuleEvent)
void enrich(String expression, MuleMessage message, TypedValue value)
expression
- a single expression i.e. header://foo that defines how the message should be enrichedmessage
- The message to be enrichedvalue
- The typed value used for enrichmentTypedValue evaluateTyped(String expression, MuleMessage message)
Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.