|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.jonas_lib.deployment.api.DescriptionGroupDesc
org.objectweb.jonas_lib.deployment.api.JndiEnvRefsGroupDesc
org.objectweb.jonas_web.deployment.api.WebContainerDeploymentDesc
This class do the parsing of the web.xml file and jonas-web.xml files and contruct a data structure associated to these two files. 03/03 : Can read web.xml and jonas-web.xml if the url of the war is a directory.
Field Summary | |
static java.lang.String |
JONAS_WEB_FILE_NAME
The path to the jonas-web.xml file. |
static java.lang.String |
WEB_FILE_NAME
The path to the web.xml file. |
Fields inherited from class org.objectweb.jonas_lib.deployment.api.DescriptionGroupDesc |
description, displayName, largeIcon, smallIcon |
Method Summary | |
java.lang.String |
getContextRoot()
Get the context root of this web application. |
static org.xml.sax.EntityResolver |
getEntityResolver()
Get the current EntityResolver. |
static org.xml.sax.ErrorHandler |
getErrorHandler()
Get the current ErrorHandler. |
java.lang.String |
getHost()
Get the host on which the web application must be deployed. |
static WebContainerDeploymentDesc |
getInstance(java.lang.String warFileName,
java.lang.ClassLoader classLoaderForCls)
Get an instance of a WEB deployment descriptor by parsing the web.xml and jonas-web.xml deployment descriptors. |
static WebContainerDeploymentDesc |
getInstance(java.lang.String warFileName,
java.lang.ClassLoader classLoaderForCls,
java.lang.String altWebXmlFilename)
Get an instance of a WEB deployment descriptor by parsing the web.xml and jonas-web.xml deployment descriptors. |
boolean |
getJava2DelegationModel()
Context classloader must follow the java2 delegation model ? |
static java.lang.String |
getJOnASXmlContent()
Return the content of the jonas-web.xml file |
static boolean |
getParsingWithValidation()
Controls whether the parser is reporting all validity errors. |
java.lang.String |
getPort()
Get the prefered port of the connector used to access the web application. |
static SecurityConstraintListDesc |
getSecurityConstraintListDesc()
Gets the constraint list |
java.util.List |
getSecurityRoleList()
Gets the list of security roles |
java.lang.String |
getServletClassname(java.lang.String servName)
Return the classname of the given servlet |
java.util.Collection |
getServletDescList()
Gets the list of Servlets |
java.util.List |
getServletMappings(java.lang.String servName)
Return the list of urlMapping of the given servlet |
java.lang.String[] |
getServletsName()
Return a list of all servlets name available |
static java.lang.String |
getXmlContent()
Return the content of the web.xml file |
static JonasWebApp |
loadJonasWebApp(java.io.Reader reader,
java.lang.String fileName)
Load the jonas-web.xml file. |
static WebApp |
loadWebApp(java.io.Reader reader,
java.lang.String fileName)
Load the web.xml file. |
static void |
setEntityResolver(org.xml.sax.EntityResolver entityResolver)
Set the specified EntityResolver. |
static void |
setErrorHandler(org.xml.sax.ErrorHandler errorHandler)
Set the specified ErrorHandler. |
static void |
setParsingWithValidation(boolean validation)
Controls whether the parser is reporting all validity errors. |
java.lang.String |
toString()
Return a String representation of the WebContainerDeploymentDesc. |
Methods inherited from class org.objectweb.jonas_lib.deployment.api.JndiEnvRefsGroupDesc |
getEjbLocalRefDesc, getEjbRefDesc, getEnvEntryDesc, getResourceEnvRefDesc, getResourceRefDesc, getServiceRefDesc |
Methods inherited from class org.objectweb.jonas_lib.deployment.api.DescriptionGroupDesc |
getDescription, getDisplayName, getLargeIcon, getSAXMsg, getSmallIcon |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final java.lang.String WEB_FILE_NAME
public static final java.lang.String JONAS_WEB_FILE_NAME
Method Detail |
public static WebContainerDeploymentDesc getInstance(java.lang.String warFileName, java.lang.ClassLoader classLoaderForCls, java.lang.String altWebXmlFilename) throws DeploymentDescException
warFileName
- the fileName of the war file for the deployment
descriptors.classLoaderForCls
- the classloader for the classes.altWebXmlFilename
- the fileName to the web.xml for the alt-dd
tag in the Ear Case. This is used for specify an alternate DDesc file.
DeploymentDescException
- if the deployment
descriptors are corrupted.public static WebContainerDeploymentDesc getInstance(java.lang.String warFileName, java.lang.ClassLoader classLoaderForCls) throws DeploymentDescException
warFileName
- the fileName of the war file for the deployment
descriptors.classLoaderForCls
- the classloader for the classes.
DeploymentDescException
- if the deployment
descriptors are corrupted.public static WebApp loadWebApp(java.io.Reader reader, java.lang.String fileName) throws DeploymentDescException
reader
- the reader of the XML file.fileName
- the name of the file (web.xml).
DeploymentDescException
- if the deployment descriptor
is corrupted.public static JonasWebApp loadJonasWebApp(java.io.Reader reader, java.lang.String fileName) throws DeploymentDescException
reader
- the Reader of the XML file.fileName
- the name of the file (jonas-web.xml).
DeploymentDescException
- if the deployment
descriptor is corrupted.public java.lang.String getContextRoot()
public boolean getJava2DelegationModel()
public java.lang.String getHost()
public java.lang.String getPort()
public java.lang.String toString()
toString
in interface DescriptionGroup
toString
in class DescriptionGroupDesc
public static SecurityConstraintListDesc getSecurityConstraintListDesc()
public java.util.List getSecurityRoleList()
public static org.xml.sax.ErrorHandler getErrorHandler()
public static org.xml.sax.EntityResolver getEntityResolver()
public static boolean getParsingWithValidation()
public static void setErrorHandler(org.xml.sax.ErrorHandler errorHandler)
errorHandler
- the Error Handler to set.public static void setEntityResolver(org.xml.sax.EntityResolver entityResolver)
entityResolver
- the Entity Resolver to set.public static void setParsingWithValidation(boolean validation)
validation
- if true, all external entities will be read.public static java.lang.String getXmlContent()
public static java.lang.String getJOnASXmlContent()
public java.util.Collection getServletDescList()
public java.lang.String[] getServletsName()
public java.lang.String getServletClassname(java.lang.String servName)
servName
- name of the given servlet
public java.util.List getServletMappings(java.lang.String servName)
servName
- name of the given servlet
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |