KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > mx4j > tools > remote > http > WebContainer


1 /*
2  * Copyright (C) The MX4J Contributors.
3  * All rights reserved.
4  *
5  * This software is distributed under the terms of the MX4J License version 1.0.
6  * See the terms of the MX4J License in the documentation provided with this software.
7  */

8
9 package mx4j.tools.remote.http;
10
11 import java.io.IOException JavaDoc;
12 import java.util.Map JavaDoc;
13 import javax.management.remote.JMXServiceURL JavaDoc;
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    /**
23     * Starts the web container
24     */

25    public void start(JMXServiceURL JavaDoc url, Map JavaDoc environment) throws IOException JavaDoc;
26
27    /**
28     * Stops the web container
29     */

30    public void stop() throws IOException JavaDoc;
31
32    /**
33     * Deploys the given servlet class mapping it to the URL specified by the given JMXServiceURL.
34     */

35    public void deploy(String JavaDoc servletClassName, JMXServiceURL JavaDoc url, Map JavaDoc environment) throws IOException JavaDoc;
36
37    /**
38     * Undeploys the servlet mapped to the URL specified by the given JMXServiceURL.
39     */

40    public void undeploy(String JavaDoc servletClassName, JMXServiceURL JavaDoc url, Map JavaDoc environment);
41 }
42
Popular Tags