View Javadoc

1   /*
2    * $Id: MessageProcessorPollingConnector.java 20395 2010-11-30 10:48:13Z dfeist $
3    * --------------------------------------------------------------------------------------
4    * Copyright (c) MuleSoft, Inc.  All rights reserved.  http://www.mulesoft.com
5    *
6    * The software in this package is published under the terms of the CPAL v1.0
7    * license, a copy of which has been included with this distribution in the
8    * LICENSE.txt file.
9    */
10  
11  package org.mule.transport.polling;
12  
13  import org.mule.api.MuleContext;
14  import org.mule.api.MuleException;
15  import org.mule.api.construct.FlowConstruct;
16  import org.mule.api.endpoint.InboundEndpoint;
17  import org.mule.api.lifecycle.InitialisationException;
18  import org.mule.transport.AbstractConnector;
19  
20  public class MessageProcessorPollingConnector extends AbstractConnector
21  {
22  
23      public MessageProcessorPollingConnector(MuleContext context)
24      {
25          super(context);
26      }
27  
28      @Override
29      protected void doConnect() throws Exception
30      {
31      }
32  
33      @Override
34      protected void doDisconnect() throws Exception
35      {
36      }
37  
38      @Override
39      protected void doDispose()
40      {
41      }
42  
43      @Override
44      protected void doInitialise() throws InitialisationException
45      {
46      }
47  
48      @Override
49      protected void doStart() throws MuleException
50      {
51      }
52  
53      @Override
54      protected void doStop() throws MuleException
55      {
56  
57      }
58  
59      public String getProtocol()
60      {
61          return "polling";
62      }
63  
64      @Override
65      protected Object getReceiverKey(FlowConstruct flowConstruct, InboundEndpoint endpoint)
66      {
67          return flowConstruct.getName() + "~" + endpoint.getEndpointURI().getAddress();
68      }
69  
70  }