|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.camel.util.ExpressionHelper
public final class ExpressionHelper
A collection of helper methods for working with expressions.
Method Summary | ||
---|---|---|
static
|
evaluateAsString(Expression<E> expression,
E exchange)
Evaluates the given expression on the exchange as a String value |
|
static
|
evaluateAsType(Expression<E> expression,
E exchange,
Class<T> resultType)
Evaluates the given expression on the exchange, converting the result to the given type |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static <E extends Exchange> String evaluateAsString(Expression<E> expression, E exchange)
expression
- the expression to evaluateexchange
- the exchange to use to evaluate the expression
public static <T,E extends Exchange> T evaluateAsType(Expression<E> expression, E exchange, Class<T> resultType)
expression
- the expression to evaluateexchange
- the exchange to use to evaluate the expressionresultType
- the type of the result that is required
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |