|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ow2.jonas.deployment.common.DescriptionGroupDesc
org.ow2.jonas.deployment.common.JndiEnvRefsGroupDesc
org.ow2.jonas.deployment.web.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.ow2.jonas.deployment.common.JndiEnvRefsGroupDesc |
|---|
logger |
| Fields inherited from class org.ow2.jonas.deployment.common.DescriptionGroupDesc |
|---|
description, displayName, largeIcon, smallIcon |
| Constructor Summary | |
|---|---|
WebContainerDeploymentDesc(String fileName,
ClassLoader classLoader,
WebApp webApp,
JonasWebApp jonasWebApp,
org.ow2.util.ee.metadata.war.api.IWarDeployableMetadata metadata)
Construct an instance of a WebContainerDeploymentDesc. Constructor is private, call one of the static getInstance method instead. |
|
| Method Summary | |
|---|---|
String |
getContextRoot()
Get the context root of this web application. |
String |
getHost()
Get the host on which the web application must be deployed. |
boolean |
getJava2DelegationModel()
Context classloader must follow the java2 delegation model ? |
String |
getJOnASXmlContent()
Return the content of the jonas-web.xml file |
String |
getPort()
Get the prefered port of the connector used to access the web application. |
SecurityConstraintListDesc |
getSecurityConstraintListDesc()
Gets the constraint list |
List<SecurityRoleDesc> |
getSecurityRoleList()
Gets the list of security roles |
String |
getServletClassname(String servName)
Return the classname of the given servlet |
Collection<ServletDesc> |
getServletDescList()
Gets the list of Servlets |
List<String> |
getServletMappings(String servName)
Return the list of urlMapping of the given servlet |
String |
getServletPrincipalName(String servName)
Return the principal name of the given servlet |
String[] |
getServletsName()
Return a list of all servlets name available |
Map<String,org.ow2.util.ee.metadata.war.api.IWarClassMetadata> |
getWebServices()
|
String |
getXmlContent()
Return the content of the web.xml file |
void |
mergeServletsRunAS(org.ow2.util.ee.metadata.war.api.IWarDeployableMetadata warDeployableMetadata)
|
void |
setJOnASXmlContent(String jXml)
Set the content of the jonas-web.xml file |
void |
setWebServices(Map<String,org.ow2.util.ee.metadata.war.api.IWarClassMetadata> services)
Set the list of POJO endpoints |
void |
setXmlContent(String xml)
Set the content of the web.xml file |
String |
toString()
Return a String representation of the WebContainerDeploymentDesc. |
| Methods inherited from class org.ow2.jonas.deployment.common.JndiEnvRefsGroupDesc |
|---|
getEjbLocalRefDesc, getEjbRefDesc, getENCBindingHolder, getEnvEntryDesc, getMessageDestinationRefDesc, getPersistenceUnitRefs, getResourceEnvRefDesc, getResourceRefDesc, getServiceRefDesc, setENCBindingHolder |
| Methods inherited from class org.ow2.jonas.deployment.common.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(String fileName,
ClassLoader classLoader,
WebApp webApp,
JonasWebApp jonasWebApp,
org.ow2.util.ee.metadata.war.api.IWarDeployableMetadata metadata)
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)metadata - the annotation metadata of the jonas-web-app
DeploymentDescException - if the deployment
descriptors are corrupted.| Method Detail |
|---|
public String getXmlContent()
public String getJOnASXmlContent()
public void setXmlContent(String xml)
xml - the content of the filepublic void setJOnASXmlContent(String jXml)
jXml - the content of the filepublic String getContextRoot()
public boolean getJava2DelegationModel()
public String getHost()
public String getPort()
public String toString()
toString in interface IDescriptionGroupDesctoString in class DescriptionGroupDescpublic Collection<ServletDesc> getServletDescList()
public String[] getServletsName()
public String getServletClassname(String servName)
servName - name of the given servlet
public SecurityConstraintListDesc getSecurityConstraintListDesc()
public List<SecurityRoleDesc> getSecurityRoleList()
public List<String> getServletMappings(String servName)
servName - name of the given servlet
public String getServletPrincipalName(String servName)
servName - name of the given servlet
public void setWebServices(Map<String,org.ow2.util.ee.metadata.war.api.IWarClassMetadata> services)
services - POJOs metadataspublic Map<String,org.ow2.util.ee.metadata.war.api.IWarClassMetadata> getWebServices()
public void mergeServletsRunAS(org.ow2.util.ee.metadata.war.api.IWarDeployableMetadata warDeployableMetadata)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||