Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.mule.expression
Class ExpressionUtils

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

    public final class ExpressionUtils

extends Object

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

Method Summary
`static Object` | `getPropertyWithScope(String expression, MuleMessage msg)`
`static
`<T> T`
` | `getPropertyWithScope(String expression, MuleMessage msg, 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 Object getPropertyWithScope(String expression,
                                              MuleMessage msg)

### getPropertyWithScope

    public static <T> T getPropertyWithScope(String expression,
                                             MuleMessage msg,
                                             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

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

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