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, expandToPath, findResource, getContentAsStream, getFileHandler, getResource, getResources, setFileHandler, streamToByteArray
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
containsClass, expandToPath, expandToPath, findResource, getResource, getResources
public 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, org.jdom.JDOMException
getApplicationXml
in interface EarArchive
org.jdom.JDOMException
IOException
- If there was a problem reading the deployment descriptor in the EAREarArchive.getApplicationXml()
public final WarArchive getWebModule(String uri) throws IOException
getWebModule
in interface EarArchive
uri
- 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 EarArchive
uri
- 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.