|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.codehaus.cargo.module.DefaultJarArchive
org.codehaus.cargo.module.application.DefaultEarArchive
public class DefaultEarArchive
Encapsulates access to an EAR.
Constructor Summary | |
---|---|
DefaultEarArchive(java.io.InputStream inputStream)
Constructor. |
|
DefaultEarArchive(java.lang.String file)
|
Method Summary | |
---|---|
ApplicationXml |
getApplicationXml()
Returns the deployment descriptor of the web application. |
EjbArchive |
getEjbModule(java.lang.String uri)
Returns the ejb archive stored in the EAR with the specified URI. |
WarArchive |
getWebModule(java.lang.String uri)
Returns the web-app archive stored in the EAR with the specified URI. |
Methods inherited from class org.codehaus.cargo.module.DefaultJarArchive |
---|
containsClass, expandToPath, findResource, getContentAsStream, getFileHandler, getResource, getResources, setFileHandler, streamToByteArray |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.codehaus.cargo.module.JarArchive |
---|
containsClass, expandToPath, findResource, getResource, getResources |
Constructor Detail |
---|
public DefaultEarArchive(java.lang.String file)
DefaultJarArchive.DefaultJarArchive(String)
public DefaultEarArchive(java.io.InputStream inputStream) throws java.io.IOException
inputStream
- The input stream for the enterprise application archive
java.io.IOException
- If there was a problem reading the EARMethod Detail |
---|
public final ApplicationXml getApplicationXml() throws java.io.IOException, org.xml.sax.SAXException, javax.xml.parsers.ParserConfigurationException
getApplicationXml
in interface EarArchive
java.io.IOException
- If there was a problem reading the deployment descriptor in the EAR
org.xml.sax.SAXException
- If the deployment descriptor of the EAR could not be parsed
javax.xml.parsers.ParserConfigurationException
- If there is an XML parser
configration problemEarArchive.getApplicationXml()
public final WarArchive getWebModule(java.lang.String uri) throws java.io.IOException
getWebModule
in interface EarArchive
uri
- The URI of the web module
null
if no WAR was found at the specified URI
java.io.IOException
- If there was an errors reading from the EAR or WAREarArchive.getWebModule(String)
public final EjbArchive getEjbModule(java.lang.String uri) throws java.io.IOException
getEjbModule
in interface EarArchive
uri
- The URI of the ejb module
null
if no WAR was found at the specified URI
java.io.IOException
- If there was an errors reading from the EAR or EJBEarArchive.getWebModule(String)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |