|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.objectweb.jonas_lib.deployment.api.DescriptionGroupDesc org.objectweb.jonas_lib.deployment.api.JndiEnvRefsGroupDesc org.objectweb.jonas_web.deployment.api.WebContainerDeploymentDesc
public class 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 |
---|
Fields inherited from class org.objectweb.jonas_lib.deployment.api.DescriptionGroupDesc |
---|
description, displayName, largeIcon, smallIcon |
Constructor Summary | |
---|---|
WebContainerDeploymentDesc(java.lang.String fileName,
java.lang.ClassLoader classLoader,
WebApp webApp,
JonasWebApp jonasWebApp)
Construct an instance of a WebContainerDeploymentDesc. Constructor is private, call one of the static getInstance method instead. |
Method Summary | |
---|---|
java.lang.String |
getContextRoot()
Get the context root of this web application. |
java.lang.String |
getHost()
Get the host on which the web application must be deployed. |
boolean |
getJava2DelegationModel()
Context classloader must follow the java2 delegation model ? |
java.lang.String |
getJOnASXmlContent()
Return the content of the jonas-web.xml file |
java.lang.String |
getPort()
Get the prefered port of the connector used to access the web application. |
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 |
java.lang.String |
getXmlContent()
Return the content of the web.xml file |
void |
setJOnASXmlContent(java.lang.String jXml)
Set the content of the jonas-web.xml file |
void |
setXmlContent(java.lang.String xml)
Set the content of the web.xml file |
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, getMessageDestinationRefDesc, 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 |
Constructor Detail |
---|
public WebContainerDeploymentDesc(java.lang.String fileName, java.lang.ClassLoader classLoader, WebApp webApp, JonasWebApp jonasWebApp) throws DeploymentDescException
fileName
- the name of the warFileclassLoader
- the classloader for the classes.webApp
- the data structure of the web-app (web.xml)jonasWebApp
- the data structure of the jonas-web-app
(jonas-web.xml)
DeploymentDescException
- if the deployment
descriptors are corrupted.Method Detail |
---|
public java.lang.String getXmlContent()
public java.lang.String getJOnASXmlContent()
public void setXmlContent(java.lang.String xml)
xml
- the content of the filepublic void setJOnASXmlContent(java.lang.String jXml)
jXml
- the content of the filepublic 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 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 SecurityConstraintListDesc getSecurityConstraintListDesc()
public java.util.List getSecurityRoleList()
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 |