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, findResource, getContentAsStream, getFileHandler, getResource, getResources, setFileHandler, streamToByteArray
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
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, SAXException, ParserConfigurationException
getWebXml
in interface WarArchive
IOException
- If there was a problem reading the deployment descriptor in the WARSAXException
- If the deployment descriptor of the WAR could not be parsedParserConfigurationException
- If there is an XML parser configuration problemWarArchive.getWebXml()
public final void store(File warFile) throws IOException, SAXException, ParserConfigurationException
store
in interface WarArchive
warFile
- file to store the war in.IOException
- If there was a problem reading the deployment descriptor in the WARSAXException
- If the deployment descriptor of the WAR could not be parsedParserConfigurationException
- If there is an XML parser configuration problemWarArchive.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.