org.mule.expression
Class ExpressionUtils

java.lang.Object
  extended by org.mule.expression.ExpressionUtils

public final class ExpressionUtils
extends java.lang.Object

Used by the different header expression evaluators to read message properties, honuouring scope and return type


Method Summary
static java.lang.Object getPropertyWithScope(java.lang.String expression, MuleMessage msg)
           
static
<T> T
getPropertyWithScope(java.lang.String expression, MuleMessage msg, java.lang.Class<T> type)
          Handler scope-aware expressions like "#[header:INBOUND:foo]
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getPropertyWithScope

public static java.lang.Object getPropertyWithScope(java.lang.String expression,
                                                    MuleMessage msg)

getPropertyWithScope

public static <T> T getPropertyWithScope(java.lang.String expression,
                                         MuleMessage msg,
                                         java.lang.Class<T> type)
Handler scope-aware expressions like "#[header:INBOUND:foo]

Parameters:
expression - the header name to evaluate. this can be prefixed with a message scope such as INBOUND, OUTBOUND or INVOCATION scope. If no scope is defined the default scope is OUTBOUND
msg - the message to evaluate on
type - the expected return type for this evaluation
Returns:
an object of type 'type' corresponding to the message header requested or null if the header was not on the message in the specified scope


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