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.servlet.jetty;
8   
9   import org.mule.api.MuleException;
10  import org.mule.api.transport.MessageReceiver;
11  
12  import javax.servlet.Servlet;
13  
14  import org.mortbay.jetty.Connector;
15  
16  /**
17   * TODO
18   */
19  
20  public interface ConnectorHolder<S extends Servlet, R extends MessageReceiver>
21  {
22      public S getServlet();
23  
24      public Connector getConnector();
25  
26      boolean isReferenced();
27  
28      void start() throws MuleException;
29  
30      void stop() throws MuleException;
31  
32      void addReceiver(R receiver);
33  
34      void removeReceiver(R receiver);
35  }