public class TomcatContextXml extends AbstractDescriptor
META-INF/context.xml
to provide convenience methods for easy access and
manipulation.Constructor and Description |
---|
TomcatContextXml(org.jdom.Element rootElement,
DescriptorType type)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
String |
getFileName()
Returns the file name of this descriptor.
|
Map |
getParameters()
Gets all the parameters that match XPath "Context/Parameter".
|
String |
getPath() |
addElement, checkElement, createNestedText, getChildText, getChildText, getDescriptorType, getDocument, getElements, getElements, getImmediateChild, getInsertionPointFor, getNestedElements, getNestedText, getTagByIdentifier, getTagByIdentifier, getTags, getTags, getText
addContent, addContent, addContent, addContent, clone, cloneContent, detachRootElement, equals, getBaseURI, getContent, getContent, getContent, getContentSize, getDescendants, getDescendants, getDocType, getParent, getProperty, getRootElement, hashCode, hasRootElement, indexOf, removeContent, removeContent, removeContent, removeContent, setBaseURI, setContent, setContent, setContent, setContent, setDocType, setProperty, setRootElement, toString
finalize, getClass, notify, notifyAll, wait, wait, wait
getRootElement
public TomcatContextXml(org.jdom.Element rootElement, DescriptorType type)
rootElement
- The root element of the contexttype
- the document descriptor typepublic String getPath()
context.xml
file (available in
the path
attribute) or null if not definedpublic Map getParameters()
public final String getFileName()
Descriptor.getFileName()
Copyright © 2004-2013 Codehaus. All Rights Reserved.