Class DefaultEarArchive

    • Constructor Detail

      • DefaultEarArchive

        public DefaultEarArchive​(InputStream inputStream)
                          throws IOException
        Constructor.
        Parameters:
        inputStream - The input stream for the enterprise application archive
        Throws:
        IOException - If there was a problem reading the EAR
    • Method Detail

      • getApplicationXml

        public ApplicationXml getApplicationXml()
                                         throws IOException,
                                                org.jdom2.JDOMException
        Returns the deployment descriptor of the web application.
        Specified by:
        getApplicationXml in interface EarArchive
        Returns:
        The parsed deployment descriptor
        Throws:
        IOException - If there was a problem reading the deployment descriptor in the EAR
        org.jdom2.JDOMException - If there is an exception reading the application xml
      • getWebModule

        public WarArchive getWebModule​(String uri)
                                throws IOException
        Returns the web-app archive stored in the EAR with the specified URI.
        Specified by:
        getWebModule in interface EarArchive
        Parameters:
        uri - The URI of the web module
        Returns:
        The web-app archive, or null if no WAR was found at the specified URI
        Throws:
        IOException - If there was an errors reading from the EAR or WAR
      • getEjbModule

        public EjbArchive getEjbModule​(String uri)
                                throws IOException
        Returns the ejb archive stored in the EAR with the specified URI.
        Specified by:
        getEjbModule in interface EarArchive
        Parameters:
        uri - The URI of the ejb module
        Returns:
        The ejb archive, or null if no WAR was found at the specified URI
        Throws:
        IOException - If there was an errors reading from the EAR or EJB