|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.mule.expression.MessagePayloadExpressionEvaluator
public class MessagePayloadExpressionEvaluator
Returns the message payload. If the expression is set to a class name then Mule will attempt to transform the payload by discovering the correct transformer(s) in the registry. This is only suited for simple transformations between common types.
#[payload:byte[]]
or
#[payload:org.mule.api.OutputHandler]
If the object passed in is not a MuleMessage, the same object will be returned.
ExpressionEvaluator
,
DefaultExpressionManager
Field Summary | |
---|---|
static String |
BYTE_ARRAY
|
protected Log |
logger
logger used by this class |
static String |
NAME
|
Constructor Summary | |
---|---|
MessagePayloadExpressionEvaluator()
|
Method Summary | |
---|---|
Object |
evaluate(String expression,
MuleMessage message)
Extracts a single property from the message |
String |
getName()
Gets the name of the object |
void |
setName(String name)
Sets the name of the object |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String NAME
public static final String BYTE_ARRAY
protected final transient Log logger
Constructor Detail |
---|
public MessagePayloadExpressionEvaluator()
Method Detail |
---|
public Object evaluate(String expression, MuleMessage message)
ExpressionEvaluator
evaluate
in interface ExpressionEvaluator
expression
- the property expression or expressionmessage
- the message to extract from
public String getName()
getName
in interface NamedObject
public void setName(String name)
setName
in interface NamedObject
name
- the name of the object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |