public class MessagePayloadExpressionEvaluator extends Object implements ExpressionEvaluator
${payload:byte[]}
or
${payload:org.mule.api.OutputHandler}
If the object passed in is not a MuleMessage, the same object will be returned.Modifier and Type | Field and Description |
---|---|
static String |
BYTE_ARRAY |
protected org.apache.commons.logging.Log |
logger
logger used by this class
|
static String |
NAME |
Constructor and Description |
---|
MessagePayloadExpressionEvaluator() |
public static final String NAME
public static final String BYTE_ARRAY
protected final transient org.apache.commons.logging.Log logger
public Object evaluate(String expression, Object message)
ExpressionEvaluator
evaluate
in interface ExpressionEvaluator
expression
- the property expression or expressionmessage
- the message to extract frompublic String getName()
getName
in interface NamedObject
public void setName(String name)
setName
in interface NamedObject
name
- the name of the objectCopyright © 2003–2013 MuleSource, Inc.. All rights reserved.