|
||||||||||
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(InputStream inputStream)
Constructor. |
|
DefaultWarArchive(String file)
|
Method Summary | |
---|---|
boolean |
containsClass(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(File warFile)
Stores the war archive to file. |
Methods inherited from class org.codehaus.cargo.module.DefaultJarArchive |
---|
expandToPath, 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, expandToPath, findResource, getResource, getResources |
Constructor Detail |
---|
public DefaultWarArchive(String file)
DefaultJarArchive.DefaultJarArchive(String)
public DefaultWarArchive(InputStream inputStream) throws IOException
inputStream
- The input stream for the web application archive
IOException
- If there was a problem reading the WARMethod Detail |
---|
public final WebXml getWebXml() throws IOException, org.jdom.JDOMException
getWebXml
in interface WarArchive
org.jdom.JDOMException
IOException
- If there was a problem reading the deployment descriptor in the WARWarArchive.getWebXml()
public final void store(File warFile) throws IOException, org.jdom.JDOMException
store
in interface WarArchive
warFile
- file to store the war in.
org.jdom.JDOMException
IOException
- If there was a problem reading the deployment descriptor in the WARWarArchive.store(java.io.File)
public final boolean containsClass(String className) throws IOException
containsClass
in interface JarArchive
containsClass
in class DefaultJarArchive
className
- The name of the class to search for
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 |