1
2
3
4
5
6
7
8
9
10
11 package org.mule.api.transport;
12
13 import org.mule.api.MuleEvent;
14 import org.mule.api.MuleException;
15 import org.mule.api.MuleMessage;
16 import org.mule.api.construct.FlowConstruct;
17 import org.mule.api.endpoint.EndpointURI;
18 import org.mule.api.endpoint.ImmutableEndpoint;
19 import org.mule.api.endpoint.InboundEndpoint;
20 import org.mule.api.source.MessageSource;
21 import org.mule.api.transaction.Transaction;
22
23 import java.io.OutputStream;
24
25
26
27
28
29
30
31
32
33
34
35
36 public interface MessageReceiver extends Connectable, MessageSource
37 {
38
39
40
41 InboundEndpoint getEndpoint();
42
43
44
45
46 FlowConstruct getFlowConstruct();
47
48
49
50
51
52 void setEndpoint(InboundEndpoint endpoint);
53
54
55
56
57 EndpointURI getEndpointURI();
58
59 String getReceiverKey();
60
61 void setReceiverKey(String key);
62
63 MuleEvent routeMessage(MuleMessage message) throws MuleException;
64
65 MuleEvent routeMessage(MuleMessage message, Transaction trans) throws MuleException;
66
67 MuleEvent routeMessage(MuleMessage message, Transaction trans, OutputStream outputStream)
68 throws MuleException;
69
70 MuleMessage createMuleMessage(Object transportMessage, String encoding) throws MuleException;
71
72 MuleMessage createMuleMessage(Object transportMessage) throws MuleException;
73 }