1
2
3
4
5
6
7 package org.mule.transport;
8
9 import org.mule.api.MuleEvent;
10 import org.mule.api.MuleMessage;
11 import org.mule.api.endpoint.OutboundEndpoint;
12
13 public final class UnsupportedMessageDispatcher extends AbstractMessageDispatcher
14 {
15
16 public UnsupportedMessageDispatcher(OutboundEndpoint endpoint)
17 {
18 super(endpoint);
19 }
20
21 protected void doDispatch(MuleEvent event) throws Exception
22 {
23 throw new UnsupportedOperationException("Dispatch not supported for this transport.");
24 }
25
26 protected MuleMessage doSend(MuleEvent event) throws Exception
27 {
28 throw new UnsupportedOperationException("Send not supported for this transport.");
29 }
30
31 protected void doInitialise()
32 {
33
34 }
35
36 protected void doDispose()
37 {
38
39 }
40
41 protected void doConnect() throws Exception
42 {
43
44 }
45
46 protected void doDisconnect() throws Exception
47 {
48
49 }
50
51 protected void doStart()
52 {
53
54 }
55
56 protected void doStop()
57 {
58
59 }
60 }