Class TomcatContextXml

    • Constructor Detail

      • TomcatContextXml

        public TomcatContextXml​(org.jdom.Element rootElement,
                                DescriptorType type)
        Constructor.
        Parameters:
        rootElement - The root element of the context
        type - the document descriptor type
    • Method Detail

      • getPath

        public String getPath()
        Returns:
        the context path element found in the context.xml file (available in the path attribute) or null if not defined
      • getParameters

        public Map<org.jdom.Attribute,​org.jdom.Attribute> getParameters()
        Gets all the parameters that match XPath "Context/Parameter".
        Returns:
        Always non-null (but possibly empty) map keyed by Context/Parameter/@name and value is Context/Parameter/@value
      • getFileName

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