org.mule.expression
Class MessageExpressionEvaluator
java.lang.Object
org.mule.expression.MessageExpressionEvaluator
- All Implemented Interfaces:
- ExpressionEvaluator, NamedObject
public class MessageExpressionEvaluator
- extends Object
- implements ExpressionEvaluator
Returns properties on the MuleMessage itself. The supported expressions map directly to methods on the message.
For example:
If no expression is set the MuleMessage itself will be returned.
If the object passed in is not a MuleMessage, the same object will be returned.
- See Also:
ExpressionEvaluator,
DefaultExpressionManager
|
Field Summary |
protected org.apache.commons.logging.Log |
logger
logger used by this class |
static String |
NAME
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NAME
public static final String NAME
- See Also:
- Constant Field Values
logger
protected final transient org.apache.commons.logging.Log logger
- logger used by this class
MessageExpressionEvaluator
public MessageExpressionEvaluator()
evaluate
public Object evaluate(String expression,
MuleMessage message)
- Description copied from interface:
ExpressionEvaluator
- Extracts a single property from the message
- Specified by:
evaluate in interface ExpressionEvaluator
- Parameters:
expression - the property expression or expressionmessage - the message to extract from
- Returns:
- the result of the extraction or null if the property was not found
getName
public String getName()
- Gets the name of the object
- Specified by:
getName in interface NamedObject
- Returns:
- the name of the object
Copyright © 2003-2013 MuleSoft, Inc.. All Rights Reserved.