1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
package org.mule.transport.rmi; |
8 | |
|
9 | |
import org.mule.api.MuleContext; |
10 | |
import org.mule.api.transport.MessageTypeNotSupportedException; |
11 | |
import org.mule.transport.AbstractMuleMessageFactory; |
12 | |
|
13 | |
public class RmiMuleMessageFactory extends AbstractMuleMessageFactory |
14 | |
{ |
15 | |
|
16 | |
public RmiMuleMessageFactory(MuleContext context) |
17 | |
{ |
18 | 0 | super(context); |
19 | 0 | } |
20 | |
|
21 | |
@Override |
22 | |
protected Object extractPayload(Object transportMessage, String encoding) throws Exception |
23 | |
{ |
24 | 0 | if (transportMessage == null) |
25 | |
{ |
26 | 0 | throw new MessageTypeNotSupportedException(null, getClass()); |
27 | |
} |
28 | |
else |
29 | |
{ |
30 | 0 | return transportMessage; |
31 | |
} |
32 | |
} |
33 | |
|
34 | |
@Override |
35 | |
protected Class<?>[] getSupportedTransportMessageTypes() |
36 | |
{ |
37 | 0 | return new Class[]{Object.class}; |
38 | |
} |
39 | |
|
40 | |
} |