org.mule.expression
Class OutboundHeadersExpressionEvaluator

java.lang.Object
  extended by org.mule.expression.OutboundHeadersExpressionEvaluator
All Implemented Interfaces:
ExpressionEvaluator, NamedObject

public class OutboundHeadersExpressionEvaluator
extends Object
implements ExpressionEvaluator

Creates a Map facade around a MuleMessage instance to allow access to outbound headers from within components and transformers without the these objects needing access to the Mule Message


Nested Class Summary
static class OutboundHeadersExpressionEvaluator.SendHeadersMap
           
 
Field Summary
protected  Log logger
          logger used by this class
static String NAME
           
 
Constructor Summary
OutboundHeadersExpressionEvaluator()
           
 
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)
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NAME

public static final String NAME
See Also:
Constant Field Values

logger

protected final transient Log logger
logger used by this class

Constructor Detail

OutboundHeadersExpressionEvaluator

public OutboundHeadersExpressionEvaluator()
Method Detail

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 expression
message - the message to extract from
Returns:
the result of the extraction or null if the property was not found

getName

public String getName()
Gets the name of the object

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

setName

public void setName(String name)



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