Interface EarArchive
-
- All Superinterfaces:
JarArchive
- All Known Implementing Classes:
DefaultEarArchive
public interface EarArchive extends JarArchive
Class that encapsulates access to an EAR.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ApplicationXmlgetApplicationXml()Returns the deployment descriptor of the web application.EjbArchivegetEjbModule(String uri)Returns the ejb archive stored in the EAR with the specified URI.WarArchivegetWebModule(String uri)Returns the web-app archive stored in the EAR with the specified URI.-
Methods inherited from interface org.codehaus.cargo.module.JarArchive
containsClass, expandToPath, findResource, getResource, getResources
-
-
-
-
Method Detail
-
getApplicationXml
ApplicationXml getApplicationXml() throws IOException, org.jdom2.JDOMException
Returns the deployment descriptor of the web application.- Returns:
- The parsed deployment descriptor
- Throws:
IOException- If there was a problem reading the deployment descriptor in the EARorg.jdom2.JDOMException- If there is an exception reading the application xml
-
getWebModule
WarArchive getWebModule(String uri) throws IOException
Returns the web-app archive stored in the EAR with the specified URI.- Parameters:
uri- The URI of the web module- Returns:
- The web-app archive, or
nullif no WAR was found at the specified URI - Throws:
IOException- If there was an errors reading from the EAR or WAR
-
getEjbModule
EjbArchive getEjbModule(String uri) throws IOException
Returns the ejb archive stored in the EAR with the specified URI.- Parameters:
uri- The URI of the ejb module- Returns:
- The ejb archive, or
nullif no WAR was found at the specified URI - Throws:
IOException- If there was an errors reading from the EAR or EJB
-
-