Class ResinWebXml
- java.lang.Object
-
- org.jdom2.Document
-
- org.codehaus.cargo.module.AbstractDescriptor
-
- org.codehaus.cargo.module.webapp.resin.ResinWebXml
-
- All Implemented Interfaces:
Serializable
,Cloneable
,Descriptor
,VendorDescriptor
,VendorWebAppDescriptor
,org.jdom2.NamespaceAware
,org.jdom2.Parent
public class ResinWebXml extends AbstractDescriptor implements VendorWebAppDescriptor
Encapsulates the DOM representation of a web deployment descriptorresin-web.xml
to provide convenience methods for easy access and manipulation.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ResinWebXml(org.jdom2.Element rootElement, DescriptorType type)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addEjbReference(EjbRef ref)
Adds a ejb reference.org.jdom2.Element
getDirectoryServlet()
Get the directory servlet.String
getFileName()
Returns the file name of this descriptor.List<org.jdom2.Element>
getJndiLinks()
Get the jndi links.List<org.jdom2.Element>
getResourceRefs()
Get the resource references.org.jdom2.Element
getSessionConfig()
Get the session config element.List<org.jdom2.Element>
getSystemProperties()
Get the system properties.-
Methods inherited from class org.codehaus.cargo.module.AbstractDescriptor
addElement, checkElement, containsElement, createNestedText, getChildText, getChildText, getContentExceptComments, getDescriptorType, getDocument, getElements, getElements, getImmediateChild, getInsertionPointFor, getNestedElements, getNestedText, getTagByIdentifier, getTagByIdentifier, getTags, getTags, getText, sameContent, sameElement
-
Methods inherited from class org.jdom2.Document
addContent, addContent, addContent, addContent, canContainContent, clone, cloneContent, detachRootElement, equals, getBaseURI, getContent, getContent, getContent, getContentSize, getDescendants, getDescendants, getDocType, getNamespacesInherited, getNamespacesInScope, getNamespacesIntroduced, getParent, getProperty, getRootElement, hashCode, hasRootElement, indexOf, removeContent, removeContent, removeContent, removeContent, setBaseURI, setContent, setContent, setContent, setContent, setDocType, setProperty, setRootElement, toString
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.codehaus.cargo.module.Descriptor
addElement, getDescriptorType, getDocument, getRootElement, getTagByIdentifier, getTagByIdentifier, getTags, getTags
-
Methods inherited from interface org.jdom2.NamespaceAware
getNamespacesInherited, getNamespacesInScope, getNamespacesIntroduced
-
Methods inherited from interface org.jdom2.Parent
addContent, addContent, addContent, addContent, canContainContent, clone, cloneContent, getContent, getContent, getContent, getContentSize, getDescendants, getDescendants, getParent, indexOf, removeContent, removeContent, removeContent, removeContent
-
-
-
-
Constructor Detail
-
ResinWebXml
public ResinWebXml(org.jdom2.Element rootElement, DescriptorType type)
Constructor.- Parameters:
rootElement
- The descriptor root elementtype
- The descriptor type
-
-
Method Detail
-
addEjbReference
public void addEjbReference(EjbRef ref)
Adds a ejb reference.- Specified by:
addEjbReference
in interfaceVendorWebAppDescriptor
- Parameters:
ref
- reference to add
-
getFileName
public String getFileName()
Returns the file name of this descriptor. For example "web.xml", "weblogic.xml", etc.- Specified by:
getFileName
in interfaceDescriptor
- Returns:
- the file name
-
getSystemProperties
public List<org.jdom2.Element> getSystemProperties()
Get the system properties.- Returns:
- the system properties
-
getResourceRefs
public List<org.jdom2.Element> getResourceRefs()
Get the resource references.- Returns:
- the resource refs
-
getJndiLinks
public List<org.jdom2.Element> getJndiLinks()
Get the jndi links.- Returns:
- the jndi links
-
getSessionConfig
public org.jdom2.Element getSessionConfig()
Get the session config element.- Returns:
- session config element
-
getDirectoryServlet
public org.jdom2.Element getDirectoryServlet()
Get the directory servlet.- Returns:
- directory servlet element
-
-