org.codehaus.cargo.module.webapp.resin
Class ResinWebXml

java.lang.Object
  extended by org.codehaus.cargo.module.AbstractDescriptor
      extended by org.codehaus.cargo.module.webapp.resin.ResinWebXml
All Implemented Interfaces:
Descriptor, VendorDescriptor, VendorWebAppDescriptor

public class ResinWebXml
extends AbstractDescriptor
implements VendorWebAppDescriptor

Encapsulates the DOM representation of a web deployment descriptor resin-web.xml to provide convenience methods for easy access and manipulation.

Version:
$Id $

Constructor Summary
ResinWebXml(org.w3c.dom.Document document)
          Constructor.
 
Method Summary
 void addEjbReference(java.lang.String name, java.lang.String jndiName)
          Adds a ejb reference description to orion-web.xml.
 org.w3c.dom.Element getDirectoryServlet()
          Get the directory servlet.
 java.lang.String getFileName()
          Returns the file name of this descriptor.
 AbstractNodeList getJndiLinks()
          Get the jndi links.
 AbstractNodeList getResourceRefs()
          Get the resource references.
 org.w3c.dom.Element getSessionConfig()
          Get the session config element.
 AbstractNodeList getSystemProperties()
          Get the system properties.
 
Methods inherited from class org.codehaus.cargo.module.AbstractDescriptor
addElement, checkElement, createNestedText, getChildText, getDocument, getElements, getImmediateChild, getInsertionPointFor, getNestedElements, getNestedText, getRootElement, getText, replaceElement
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.codehaus.cargo.module.Descriptor
getDocument
 

Constructor Detail

ResinWebXml

public ResinWebXml(org.w3c.dom.Document document)
Constructor.

Parameters:
document - The DOM document representing the parsed deployment descriptor
Method Detail

addEjbReference

public void addEjbReference(java.lang.String name,
                            java.lang.String jndiName)
Adds a ejb reference description to orion-web.xml.

Specified by:
addEjbReference in interface VendorWebAppDescriptor
Parameters:
name - name of the reference
jndiName - jndi name to map

getFileName

public java.lang.String getFileName()
Returns the file name of this descriptor. For example "web.xml", "weblogic.xml", etc.

Specified by:
getFileName in interface Descriptor
Returns:
the file name
See Also:
Descriptor.getFileName()

getSystemProperties

public AbstractNodeList getSystemProperties()
Get the system properties.

Returns:
the system properties

getResourceRefs

public AbstractNodeList getResourceRefs()
Get the resource references.

Returns:
the resource refs

getJndiLinks

public AbstractNodeList getJndiLinks()
Get the jndi links.

Returns:
the jndi links

getSessionConfig

public org.w3c.dom.Element getSessionConfig()
Get the session config element.

Returns:
session config element

getDirectoryServlet

public org.w3c.dom.Element getDirectoryServlet()
Get the directory servlet.

Returns:
directory servlet element


Copyright © 2004-2010 Codehaus. All Rights Reserved.