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