org.mule.util.expression
Class MessageHeaderExpressionEvaluator
java.lang.Object
org.mule.util.expression.MessageHeaderExpressionEvaluator
- All Implemented Interfaces:
- NamedObject, ExpressionEvaluator
- Direct Known Subclasses:
- CorrelationPropertiesExpressionEvaluator
public class MessageHeaderExpressionEvaluator
- extends Object
- implements ExpressionEvaluator
Looks up the property on the message using the property name given.
- See Also:
MessageHeadersListExpressionEvaluator
,
MessageHeadersExpressionEvaluator
,
ExpressionEvaluator
,
ExpressionEvaluatorManager
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
MessageHeaderExpressionEvaluator
public MessageHeaderExpressionEvaluator()
evaluate
public Object evaluate(String expression,
Object 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
getName
public String getName()
- Gts the name of the object
- Specified by:
getName
in interface NamedObject
- Returns:
- the name of the object
setName
public void setName(String name)
- Sets the name of the object
- Specified by:
setName
in interface NamedObject
- Parameters:
name
- the name of the object
Copyright © 2003-2008 MuleSource, Inc.. All Rights Reserved.