View Javadoc
1   /*
2    * Copyright (c) MuleSoft, Inc.  All rights reserved.  http://www.mulesoft.com
3    * The software in this package is published under the terms of the CPAL v1.0
4    * license, a copy of which has been included with this distribution in the
5    * LICENSE.txt file.
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  }