|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.mule.expression.MessageExpressionEvaluator
public class MessageExpressionEvaluator
Returns properties on the MuleMessage itself. The supported expressions map directly to methods on the message. For example:
MessageAdapter.getUniqueId()
MessageAdapter.getCorrelationId()
MessageAdapter.getCorrelationGroupSize()
MessageAdapter.getCorrelationSequence()
MessageAdapter.getReplyTo()
MessageAdapter.getPayload()
MessageAdapter.getEncoding()
org.mule.api.MuleMessage#getExceptionPayload().getException()
or null if there is no exception payload
ExpressionEvaluator
,
DefaultExpressionManager
Field Summary | |
---|---|
protected Log |
logger
logger used by this class |
static String |
NAME
|
Constructor Summary | |
---|---|
MessageExpressionEvaluator()
|
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
protected final transient Log logger
Constructor Detail |
---|
public MessageExpressionEvaluator()
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 |