|
||||||||||
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.webapp.DefaultWarArchive
public class DefaultWarArchive
Class that encapsulates access to a WAR.
Constructor Summary | |
---|---|
DefaultWarArchive(java.io.InputStream inputStream)
Constructor. |
|
DefaultWarArchive(java.lang.String file)
|
Method Summary | |
---|---|
boolean |
containsClass(java.lang.String className)
Returns whether a class of the specified name is contained in the web-app archive, either directly in WEB-INF/classes, or in one of the JARs in WEB-INF/lib. |
WebXml |
getWebXml()
Returns the deployment descriptor of the web application. |
void |
store(java.io.File warFile)
Stores the war archive to file. |
Methods inherited from class org.codehaus.cargo.module.DefaultJarArchive |
---|
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 |
---|
expandToPath, findResource, getResource, getResources |
Constructor Detail |
---|
public DefaultWarArchive(java.lang.String file)
DefaultJarArchive.DefaultJarArchive(String)
public DefaultWarArchive(java.io.InputStream inputStream) throws java.io.IOException
inputStream
- The input stream for the web application archive
java.io.IOException
- If there was a problem reading the WARMethod Detail |
---|
public final WebXml getWebXml() throws java.io.IOException, org.xml.sax.SAXException, javax.xml.parsers.ParserConfigurationException
getWebXml
in interface WarArchive
java.io.IOException
- If there was a problem reading the deployment descriptor in the WAR
org.xml.sax.SAXException
- If the deployment descriptor of the WAR could not be parsed
javax.xml.parsers.ParserConfigurationException
- If there is an XML parser configuration problemWarArchive.getWebXml()
public final void store(java.io.File warFile) throws java.io.IOException, org.xml.sax.SAXException, javax.xml.parsers.ParserConfigurationException
store
in interface WarArchive
warFile
- file to store the war in.
java.io.IOException
- If there was a problem reading the deployment descriptor in the WAR
org.xml.sax.SAXException
- If the deployment descriptor of the WAR could not be parsed
javax.xml.parsers.ParserConfigurationException
- If there is an XML parser configuration problemWarArchive.store(java.io.File)
public final boolean containsClass(java.lang.String className) throws java.io.IOException
containsClass
in interface JarArchive
containsClass
in class DefaultJarArchive
className
- The name of the class to search for
java.io.IOException
- If an I/O error occurred reading the archiveJarArchive.containsClass(String)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |