1
2
3
4
5
6
7
8
9
10
11 package org.mule.transport;
12
13 import org.mule.api.MuleContext;
14
15 public class DefaultMuleMessageFactory extends AbstractMuleMessageFactory
16 {
17 public DefaultMuleMessageFactory(MuleContext context)
18 {
19 super(context);
20 }
21
22 @Override
23 protected Class<?>[] getSupportedTransportMessageTypes()
24 {
25 return new Class[]{Object.class};
26 }
27
28 @Override
29 protected Object extractPayload(Object transportMessage, String encoding) throws Exception
30 {
31 return transportMessage;
32 }
33 }