|
||||||||||
| 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 |
protected MuleContext |
muleContext
|
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 |
setMuleContext(MuleContext context)
|
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
protected MuleContext muleContext
| Constructor Detail |
|---|
public MessagePayloadExpressionEvaluator()
| Method Detail |
|---|
public void setMuleContext(MuleContext context)
setMuleContext in interface MuleContextAware
public Object evaluate(String expression,
MuleMessage message)
ExpressionEvaluator
evaluate in interface ExpressionEvaluatorexpression - the property expression or expressionmessage - the message to extract from
public String getName()
getName in interface NamedObjectpublic void setName(String name)
setName in interface NamedObjectname - the name of the object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||