org.apache.camel.language.ognl
Class OgnlExpression

java.lang.Object
  extended by org.apache.camel.impl.ExpressionSupport
      extended by org.apache.camel.language.ognl.OgnlExpression
All Implemented Interfaces:
Expression, Predicate

public class OgnlExpression
extends ExpressionSupport

An OGNL Expression

Version:
$Revision: 19087 $

Constructor Summary
OgnlExpression(OgnlLanguage language, String expressionString, Class<?> type)
           
 
Method Summary
protected  String assertionFailureMessage(Exchange exchange)
           
<T> T
evaluate(Exchange exchange, Class<T> tClass)
          Returns the value of the expression on the given exchange
 Class<?> getType()
           
static OgnlExpression ognl(String expression)
           
 String toString()
           
 
Methods inherited from class org.apache.camel.impl.ExpressionSupport
assertMatches, evaluate, matches
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

OgnlExpression

public OgnlExpression(OgnlLanguage language,
                      String expressionString,
                      Class<?> type)
Method Detail

ognl

public static OgnlExpression ognl(String expression)

evaluate

public <T> T evaluate(Exchange exchange,
                      Class<T> tClass)
Description copied from interface: Expression
Returns the value of the expression on the given exchange

Parameters:
exchange - the message exchange on which to evaluate the expression
tClass - the expected type of the evaluation result
Returns:
the value of the expression

getType

public Class<?> getType()

assertionFailureMessage

protected String assertionFailureMessage(Exchange exchange)
Specified by:
assertionFailureMessage in class ExpressionSupport

toString

public String toString()
Overrides:
toString in class Object


Apache CAMEL