org.objectweb.jonas.web
Interface WarMBean

All Known Implementing Classes:
War

public interface WarMBean

This interface defines the MBean methods which can be done on a war file

Author:
Florent Benoit

Method Summary
 java.lang.String getContextRoot()
          Get the context root of this war.
 java.net.URL getEarURL()
          Get the URL of the ear containing this war.
 java.lang.String getHostName()
          Get the name of the host on which this war is deployed.
 boolean getJava2DelegationModel()
          Context classloader must follow the java2 delegation model ?
 java.lang.String getJOnASXmlContent()
          Return the jonas-specific xml file
 java.lang.String[] getServletsName()
          Return a list of all servlets available
 java.net.URL getWarURL()
          Get the URL of the war file.
 java.lang.String getXmlContent()
          Return the standard xml file
 boolean isInEarCase()
          Return true if only if this war is in an ear file.
 

Method Detail

isInEarCase

boolean isInEarCase()
Return true if only if this war is in an ear file.

Returns:
true if only if this war is in an ear file.

getWarURL

java.net.URL getWarURL()
Get the URL of the war file.

Returns:
the URL of the war file.

getEarURL

java.net.URL getEarURL()
Get the URL of the ear containing this war.

Returns:
the URL of the war file.

getHostName

java.lang.String getHostName()
Get the name of the host on which this war is deployed.

Returns:
the name of the host on which this war is deployed.

getContextRoot

java.lang.String getContextRoot()
Get the context root of this war.

Returns:
the context root of this war.

getJava2DelegationModel

boolean getJava2DelegationModel()
Context classloader must follow the java2 delegation model ?

Returns:
true if the context's classloader must follow the java 2 delegation model.

getXmlContent

java.lang.String getXmlContent()
Return the standard xml file

Returns:
the standard xml file

getJOnASXmlContent

java.lang.String getJOnASXmlContent()
Return the jonas-specific xml file

Returns:
the jonas-specific xml file

getServletsName

java.lang.String[] getServletsName()
Return a list of all servlets available

Returns:
a list of all servlets available