|
||||||||||
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 java.lang.String |
BYTE_ARRAY
|
protected Log |
logger
logger used by this class |
protected MuleContext |
muleContext
|
static java.lang.String |
NAME
|
Constructor Summary | |
---|---|
MessagePayloadExpressionEvaluator()
|
Method Summary | |
---|---|
java.lang.Object |
evaluate(java.lang.String expression,
MuleMessage message)
Extracts a single property from the message |
java.lang.String |
getName()
Gets the name of the object |
void |
setMuleContext(MuleContext context)
|
void |
setName(java.lang.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 java.lang.String NAME
public static final java.lang.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 java.lang.Object evaluate(java.lang.String expression, MuleMessage message)
ExpressionEvaluator
evaluate
in interface ExpressionEvaluator
expression
- the property expression or expressionmessage
- the message to extract from
public java.lang.String getName()
getName
in interface NamedObject
public void setName(java.lang.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 |