org.mule.expression
Class MessageHeaderExpressionEvaluator

java.lang.Object
  extended by org.mule.expression.MessageHeaderExpressionEvaluator
All Implemented Interfaces:
ExpressionEvaluator, NamedObject, ExpressionConstants
Direct Known Subclasses:
CorrelationPropertiesExpressionEvaluator

public class MessageHeaderExpressionEvaluator
extends java.lang.Object
implements ExpressionEvaluator, ExpressionConstants

Looks up the property on the message using the property name given. If the call on the messgae returns null, parameters on the inbound endpoint will also be checked.

See Also:
MessageHeadersListExpressionEvaluator, MessageHeadersExpressionEvaluator, ExpressionEvaluator, DefaultExpressionManager

Field Summary
static java.lang.String NAME
           
 
Fields inherited from interface org.mule.expression.ExpressionConstants
ALL_ARGUMENT, DELIM, OPTIONAL_ARGUMENT
 
Constructor Summary
MessageHeaderExpressionEvaluator()
           
 
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 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

NAME

public static final java.lang.String NAME
See Also:
Constant Field Values
Constructor Detail

MessageHeaderExpressionEvaluator

public MessageHeaderExpressionEvaluator()
Method Detail

evaluate

public java.lang.Object evaluate(java.lang.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 expression
message - the message to extract from
Returns:
the result of the extraction or null if the property was not found

getName

public java.lang.String getName()
Gets the name of the object

Specified by:
getName in interface NamedObject
Returns:
the name of the object

setName

public void setName(java.lang.String name)
Sets the name of the object

Specified by:
setName in interface NamedObject
Parameters:
name - the name of the object


Copyright © 2003-2010 MuleSoft, Inc.. All Rights Reserved.