public class DefaultWarArchive extends DefaultJarArchive implements WarArchive
Constructor and Description |
---|
DefaultWarArchive(InputStream inputStream)
Constructor.
|
DefaultWarArchive(String file) |
Modifier and Type | Method and Description |
---|---|
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.
|
expandToPath, expandToPath, findResource, getContentAsStream, getFileHandler, getResource, getResources, setFileHandler, streamToByteArray
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
expandToPath, expandToPath, findResource, getResource, getResources
public DefaultWarArchive(String file)
public DefaultWarArchive(InputStream inputStream) throws IOException
inputStream
- The input stream for the web application archiveIOException
- If there was a problem reading the WARpublic 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 forIOException
- If an I/O error occurred reading the archiveJarArchive.containsClass(String)
Copyright © 2004-2013 Codehaus. All Rights Reserved.