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