01: /**
02: * JOnAS: Java(TM) Open Application Server
03: * Copyright (C) 1999-2005 Bull S.A.
04: * Contact: jonas-team@objectweb.org
05: *
06: * This library is free software; you can redistribute it and/or
07: * modify it under the terms of the GNU Lesser General Public
08: * License as published by the Free Software Foundation; either
09: * 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 6702 2005-05-05 16:09:14Z benoitf $
23: * --------------------------------------------------------------------------
24: */package org.objectweb.jonas.web;
25:
26: import java.net.URL;
27:
28: /**
29: * This interface defines the MBean methods which can be done on a war file
30: * @author Florent Benoit
31: */
32: public interface WarMBean {
33:
34: /**
35: * Return true if only if this war is in an ear file.
36: * @return true if only if this war is in an ear file.
37: */
38: boolean isInEarCase();
39:
40: /**
41: * Get the URL of the war file.
42: * @return the URL of the war file.
43: */
44: URL getWarURL();
45:
46: /**
47: * Get the URL of the ear containing this war.
48: * @return the URL of the war file.
49: */
50: URL getEarURL();
51:
52: /**
53: * Get the name of the host on which this war is deployed.
54: * @return the name of the host on which this war is deployed.
55: */
56: String getHostName();
57:
58: /**
59: * Get the context root of this war.
60: * @return the context root of this war.
61: */
62: String getContextRoot();
63:
64: /**
65: * Context classloader must follow the java2 delegation model ?
66: * @return true if the context's classloader must follow the java 2
67: * delegation model.
68: */
69: boolean getJava2DelegationModel();
70:
71: /**
72: * Return the standard xml file
73: * @return the standard xml file
74: */
75: String getXmlContent();
76:
77: /**
78: * Return the jonas-specific xml file
79: * @return the jonas-specific xml file
80: */
81: String getJOnASXmlContent();
82:
83: /**
84: * Return a list of all servlets available
85: * @return a list of all servlets available
86: */
87: String[] getServletsName();
88:
89: }
|