KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > jonas > web > WarMBean


1 /**
2  * JOnAS: Java(TM) Open Application Server
3  * Copyright (C) 1999-2005 Bull S.A.
4  * Contact: jonas-team@objectweb.org
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser General Public
8  * License as published by the Free Software Foundation; either
9  * version 2.1 of the License, or any later version.
10  *
11  * This library is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14  * Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public
17  * License along with this library; if not, write to the Free Software
18  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
19  * USA
20  *
21  * --------------------------------------------------------------------------
22  * $Id: WarMBean.java,v 1.3 2005/05/05 16:09:14 benoitf Exp $
23  * --------------------------------------------------------------------------
24  */

25
26 package org.objectweb.jonas.web;
27
28 import java.net.URL JavaDoc;
29
30 /**
31  * This interface defines the MBean methods which can be done on a war file
32  * @author Florent Benoit
33  */

34 public interface WarMBean {
35
36     /**
37      * Return true if only if this war is in an ear file.
38      * @return true if only if this war is in an ear file.
39      */

40     boolean isInEarCase();
41
42     /**
43      * Get the URL of the war file.
44      * @return the URL of the war file.
45      */

46     URL JavaDoc getWarURL();
47
48     /**
49      * Get the URL of the ear containing this war.
50      * @return the URL of the war file.
51      */

52     URL JavaDoc getEarURL();
53
54     /**
55      * Get the name of the host on which this war is deployed.
56      * @return the name of the host on which this war is deployed.
57      */

58     String JavaDoc getHostName();
59
60     /**
61      * Get the context root of this war.
62      * @return the context root of this war.
63      */

64     String JavaDoc getContextRoot();
65
66     /**
67      * Context classloader must follow the java2 delegation model ?
68      * @return true if the context's classloader must follow the java 2
69      * delegation model.
70      */

71     boolean getJava2DelegationModel();
72
73     /**
74      * Return the standard xml file
75      * @return the standard xml file
76      */

77     String JavaDoc getXmlContent();
78
79     /**
80      * Return the jonas-specific xml file
81      * @return the jonas-specific xml file
82      */

83     String JavaDoc getJOnASXmlContent();
84
85     /**
86      * Return a list of all servlets available
87      * @return a list of all servlets available
88      */

89     String JavaDoc[] getServletsName();
90
91 }
92
Popular Tags