1
2
3
4
5
6
7 package org.mule.transport.polling;
8
9 import org.mule.api.MuleContext;
10 import org.mule.api.MuleException;
11 import org.mule.api.construct.FlowConstruct;
12 import org.mule.api.endpoint.InboundEndpoint;
13 import org.mule.api.lifecycle.InitialisationException;
14 import org.mule.transport.AbstractConnector;
15
16 public class MessageProcessorPollingConnector extends AbstractConnector
17 {
18
19 public MessageProcessorPollingConnector(MuleContext context)
20 {
21 super(context);
22 }
23
24 @Override
25 protected void doConnect() throws Exception
26 {
27 }
28
29 @Override
30 protected void doDisconnect() throws Exception
31 {
32 }
33
34 @Override
35 protected void doDispose()
36 {
37 }
38
39 @Override
40 protected void doInitialise() throws InitialisationException
41 {
42 }
43
44 @Override
45 protected void doStart() throws MuleException
46 {
47 }
48
49 @Override
50 protected void doStop() throws MuleException
51 {
52
53 }
54
55 public String getProtocol()
56 {
57 return "polling";
58 }
59
60 @Override
61 protected Object getReceiverKey(FlowConstruct flowConstruct, InboundEndpoint endpoint)
62 {
63 return flowConstruct.getName() + "~" + endpoint.getEndpointURI().getAddress();
64 }
65
66 }