org.mule.expression
Class MessageAttachmentsListExpressionEvaluator

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

public class MessageAttachmentsListExpressionEvaluator
extends Object
implements ExpressionEvaluator

Looks up the attachment(s) on the message using the expression given. The expression can contain a comma-separated list of header names to lookup. A List of values is returned.

See Also:
MessageAttachmentsExpressionEvaluator, MessageAttachmentExpressionEvaluator, ExpressionEvaluator, DefaultExpressionManager

Field Summary
static String ALL_ARGUMENT
           
static String DELIM
           
static String NAME
           
 
Constructor Summary
MessageAttachmentsListExpressionEvaluator()
           
 
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)
          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 String NAME
See Also:
Constant Field Values

DELIM

public static final String DELIM
See Also:
Constant Field Values

ALL_ARGUMENT

public static final String ALL_ARGUMENT
See Also:
Constant Field Values
Constructor Detail

MessageAttachmentsListExpressionEvaluator

public MessageAttachmentsListExpressionEvaluator()
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)
Sets the name of the object

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


Copyright © 2003-2009 MuleSource, Inc.. All Rights Reserved.