Class JBossWebXml

    • Constructor Detail

      • JBossWebXml

        public JBossWebXml​(org.jdom.Element rootElement,
                           DescriptorType type)
        Constructor.
        Parameters:
        rootElement - The root document element
        type - The document type
    • Method Detail

      • getContextRoot

        public String getContextRoot()
        Returns:
        the context root element found in the jboss-web.xml file or null if not defined
      • getVirtualHost

        public String getVirtualHost()
        Returns:
        the virtual host element found in the jboss-web.xml file or null if not defined
      • getFileName

        public 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
      • addEjbReference

        public void addEjbReference​(EjbRef ref)
        Adds an ejb reference to the descriptor.
        Specified by:
        addEjbReference in interface VendorWebAppDescriptor
        Parameters:
        ref - ejb reference to add to the descriptor