org.mule.expression
Class MapPayloadExpressionEvaluator
java.lang.Object
org.mule.expression.MapPayloadExpressionEvaluator
- All Implemented Interfaces:
- ExpressionEvaluator, NamedObject
public class MapPayloadExpressionEvaluator
- extends Object
- implements ExpressionEvaluator
If the message payload is a map this extractor will look up the property value in
the map
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NAME
public static final String NAME
- See Also:
- Constant Field Values
MapPayloadExpressionEvaluator
public MapPayloadExpressionEvaluator()
evaluate
public Object evaluate(String expression,
MuleMessage message)
- Description copied from interface:
ExpressionEvaluator
- Extracts a single property from the message
- Specified by:
evaluate
in interface ExpressionEvaluator
- Parameters:
expression
- the property expression or expressionmessage
- the message to extract from
- Returns:
- the result of the extraction or null if the property was not found
getValue
protected Object getValue(String key,
Map map)
getName
public String getName()
- Gets the name of the object
- Specified by:
getName
in interface NamedObject
- Returns:
- the name of the object
Copyright © 2003-2012 MuleSoft, Inc.. All Rights Reserved.