KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > mule > providers > http > servlet > ServletConnector


1 /*
2  * $Id: ServletConnector.java 3831 2006-11-07 22:29:59Z aperepel $
3  * --------------------------------------------------------------------------------------
4  * Copyright (c) MuleSource, Inc. All rights reserved. http://www.mulesource.com
5  *
6  * The software in this package is published under the terms of the MuleSource MPL
7  * license, a copy of which has been included with this distribution in the
8  * LICENSE.txt file.
9  */

10
11 package org.mule.providers.http.servlet;
12
13 import org.mule.providers.AbstractServiceEnabledConnector;
14
15 import java.util.Map JavaDoc;
16
17 /**
18  * <code>ServletConnector</code> is a channel adapter between Mule and a servlet
19  * engine. It allows the MUleReceiverServlet to look up components interested in requests
20  * it receives via the servlet container.
21  *
22  * @see MuleReceiverServlet
23  */

24
25 public class ServletConnector extends AbstractServiceEnabledConnector
26 {
27     // The real url that the servlet container is bound on.
28
// If this is not set the wsdl may not be generated correctly
29
protected String JavaDoc servletUrl;
30
31     public ServletConnector()
32     {
33         super();
34         registerSupportedProtocol("http");
35         registerSupportedProtocol("https");
36     }
37
38     public String JavaDoc getProtocol()
39     {
40         return "servlet";
41     }
42
43     public Map JavaDoc getReceivers()
44     {
45         return receivers;
46     }
47
48     public String JavaDoc getServletUrl()
49     {
50         return servletUrl;
51     }
52
53     public void setServletUrl(String JavaDoc servletUrl)
54     {
55         this.servletUrl = servletUrl;
56     }
57 }
58
Popular Tags