View Javadoc

1   /*
2    * $Id: ConnectorHolder.java 19391 2010-09-07 14:24:40Z dirk.olmes $
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  package org.mule.transport.servlet.jetty;
11  
12  import org.mule.api.MuleException;
13  import org.mule.api.transport.MessageReceiver;
14  
15  import javax.servlet.Servlet;
16  
17  import org.mortbay.jetty.Connector;
18  
19  /**
20   * TODO
21   */
22  
23  public interface ConnectorHolder<S extends Servlet, R extends MessageReceiver>
24  {
25      public S getServlet();
26  
27      public Connector getConnector();
28  
29      boolean isReferenced();
30  
31      void start() throws MuleException;
32  
33      void stop() throws MuleException;
34  
35      void addReceiver(R receiver);
36  
37      void removeReceiver(R receiver);
38  }