public class DefaultEarArchive extends DefaultJarArchive implements EarArchive
| Constructor and Description |
|---|
DefaultEarArchive(InputStream inputStream)
Constructor.
|
DefaultEarArchive(String file) |
| Modifier and Type | Method and Description |
|---|---|
ApplicationXml |
getApplicationXml()
Returns the deployment descriptor of the web application.
|
EjbArchive |
getEjbModule(String uri)
Returns the ejb archive stored in the EAR with the specified URI.
|
WarArchive |
getWebModule(String uri)
Returns the web-app archive stored in the EAR with the specified URI.
|
containsClass, expandToPath, findResource, getContentAsStream, getFileHandler, getResource, getResources, setFileHandler, streamToByteArrayclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcontainsClass, expandToPath, findResource, getResource, getResourcespublic DefaultEarArchive(String file)
public DefaultEarArchive(InputStream inputStream) throws IOException
inputStream - The input stream for the enterprise application archiveIOException - If there was a problem reading the EARpublic final ApplicationXml getApplicationXml() throws IOException, SAXException, ParserConfigurationException
getApplicationXml in interface EarArchiveIOException - If there was a problem reading the deployment descriptor in the EARSAXException - If the deployment descriptor of the EAR could not be parsedParserConfigurationException - If there is an XML parser
configration problemEarArchive.getApplicationXml()public final WarArchive getWebModule(String uri) throws IOException
getWebModule in interface EarArchiveuri - The URI of the web modulenull if no WAR was found at the specified URIIOException - If there was an errors reading from the EAR or WAREarArchive.getWebModule(String)public final EjbArchive getEjbModule(String uri) throws IOException
getEjbModule in interface EarArchiveuri - The URI of the ejb modulenull if no WAR was found at the specified URIIOException - If there was an errors reading from the EAR or EJBEarArchive.getWebModule(String)Copyright © 2004-2013 Codehaus. All Rights Reserved.