|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--org.objectweb.jonas_lib.deployment.AbsDeploymentDesc
|
+--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.
| 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.AbsDeploymentDesc |
displayName |
| Method Summary | |
java.lang.String |
getContextRoot()
Get the context root of this web application. |
EjbLocalRefDesc[] |
getEjbLocalRefTags()
Get an array of mapping between an ejb local name and its JNDI name. |
EjbRefDesc[] |
getEjbRefTags()
Get an array of mapping between an ejb name and its JNDI name. |
static org.xml.sax.EntityResolver |
getEntityResolver()
Get the current EntityResolver. |
EnvEntryDesc[] |
getEnvEntryTags()
Get an array of mapping between an entry name and its value. |
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)
ontainerDeploymentDescException("ejb-lin 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)
ontainerDeploymentDescException("ejb-lin Get an instance of a WEB deployment descriptor by parsing the web.xml and jonas-web.xml deployment descriptors. |
static boolean |
getParsingWithValidation()
Controls whether the parser is reporting all validity errors. |
ResourceEnvRefDesc[] |
getResourceEnvRefTags()
Get an array of mapping between a res-env-ref name and its JNDI name. |
ResourceRefDesc[] |
getResourceRefTags()
Get an array of mapping between an res-ref name and its JNDI name. |
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.AbsDeploymentDesc |
getDisplayName, getSAXMsg |
| 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 WebContainerDeploymentDescException
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.WebContainerDeploymentDescException - if the deployment
descriptors are corrupted.
public static WebContainerDeploymentDesc getInstance(java.lang.String warFileName,
java.lang.ClassLoader classLoaderForCls)
throws WebContainerDeploymentDescException
warFileName - the fileName of the war file for the deployment
descriptors.classLoaderForCls - the classloader for the classes.WebContainerDeploymentDescException - if the deployment
descriptors are corrupted.public ResourceEnvRefDesc[] getResourceEnvRefTags()
public ResourceRefDesc[] getResourceRefTags()
public EnvEntryDesc[] getEnvEntryTags()
public EjbRefDesc[] getEjbRefTags()
public EjbLocalRefDesc[] getEjbLocalRefTags()
public java.lang.String getContextRoot()
public java.lang.String getHost()
public java.lang.String toString()
toString in class AbsDeploymentDescpublic 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.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||