01: /*
02: * Copyright (C) The MX4J Contributors.
03: * All rights reserved.
04: *
05: * This software is distributed under the terms of the MX4J License version 1.0.
06: * See the terms of the MX4J License in the documentation provided with this software.
07: */
08:
09: package mx4j.tools.remote.http;
10:
11: import java.io.IOException;
12: import java.util.Map;
13: import javax.management.remote.JMXServiceURL;
14:
15: /**
16: * An Interface for the Web Container so that we can plug in any web container.
17: *
18: * @version $Revision: 1.3 $
19: */
20: public interface WebContainer {
21: /**
22: * Starts the web container
23: */
24: public void start(JMXServiceURL url, Map environment)
25: throws IOException;
26:
27: /**
28: * Stops the web container
29: */
30: public void stop() throws IOException;
31:
32: /**
33: * Deploys the given servlet class mapping it to the URL specified by the given JMXServiceURL.
34: */
35: public void deploy(String servletClassName, JMXServiceURL url,
36: Map environment) throws IOException;
37:
38: /**
39: * Undeploys the servlet mapped to the URL specified by the given JMXServiceURL.
40: */
41: public void undeploy(String servletClassName, JMXServiceURL url,
42: Map environment);
43: }
|