1
2
3
4
5
6
7
8
9
10 package org.mule.expression;
11
12 import org.mule.api.MuleMessage;
13 import org.mule.api.expression.ExpressionEvaluator;
14
15 import org.apache.commons.logging.Log;
16 import org.apache.commons.logging.LogFactory;
17
18
19
20
21
22 public class OutboundAttachmentsExpressionEvaluator implements ExpressionEvaluator
23 {
24 public static final String NAME = "outboundAttachments";
25
26
27
28
29 protected transient final Log logger = LogFactory.getLog(OutboundAttachmentsExpressionEvaluator.class);
30
31
32 public Object evaluate(String expression, MuleMessage message)
33 {
34 if (message == null)
35 {
36 return null;
37 }
38 return new OutboundAttachmentsMap(message);
39 }
40
41
42
43
44 public String getName()
45 {
46 return NAME;
47 }
48
49
50
51
52 public void setName(String name)
53 {
54 throw new UnsupportedOperationException("name");
55 }
56 }