1
2
3
4
5
6
7
8
9
10
11 package org.mule.providers.http.servlet;
12
13 import org.mule.providers.AbstractConnector;
14 import org.mule.umo.UMOException;
15 import org.mule.umo.lifecycle.InitialisationException;
16
17 import java.util.Map;
18
19
20
21
22
23
24
25
26
27 public class ServletConnector extends AbstractConnector
28 {
29
30
31 protected String servletUrl;
32
33 public ServletConnector()
34 {
35 super();
36 registerSupportedProtocol("http");
37 registerSupportedProtocol("https");
38 }
39
40
41 protected void doInitialise() throws InitialisationException
42 {
43
44 }
45
46 protected void doDispose()
47 {
48
49 }
50
51 protected void doConnect() throws Exception
52 {
53
54 }
55
56 protected void doDisconnect() throws Exception
57 {
58
59 }
60
61 protected void doStart() throws UMOException
62 {
63
64 }
65
66 protected void doStop() throws UMOException
67 {
68
69 }
70
71 public String getProtocol()
72 {
73 return "servlet";
74 }
75
76 public Map getReceivers()
77 {
78 return receivers;
79 }
80
81 public String getServletUrl()
82 {
83 return servletUrl;
84 }
85
86 public void setServletUrl(String servletUrl)
87 {
88 this.servletUrl = servletUrl;
89 }
90
91 }