|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.codehaus.cargo.module.webapp.WarArchiveMerger.MergedWarArchive
public class WarArchiveMerger.MergedWarArchive
Subclass representing the merged WAR file.
| Nested Class Summary | |
|---|---|
class |
WarArchiveMerger.MergedWarArchive.ArchiveResourceMerger
Class to store merging operations. |
| Method Summary | |
|---|---|
void |
addProcessor(java.lang.String path,
MergeProcessor merger)
|
boolean |
containsClass(java.lang.String theClassName)
Returns whether a class of the specified name is contained in the archive. |
protected void |
executeMergeProcessors(java.io.File assembleDir)
|
void |
expandToPath(java.lang.String path)
Expand the archive to the specified directory. |
java.lang.String |
findResource(java.lang.String theName)
Returns the full path of a named resource in the archive. |
protected DefaultWarArchive |
firstWarFile()
|
java.io.InputStream |
getResource(java.lang.String thePath)
Returns a resource from the archive as input stream. |
java.util.List |
getResources(java.lang.String thePath)
Returns the list of resources in the specified directory in the archive. |
WebXml |
getWebXml()
Returns the deployment descriptor of the web application. |
WebXmlMerger |
getWebXmlMerger()
Get the web XML merger. |
void |
store(java.io.File warFile)
Stores the war archive to file. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
protected DefaultWarArchive firstWarFile()
public void addProcessor(java.lang.String path,
MergeProcessor merger)
path - in the path to merge tomerger - in the processor to add
public WebXmlMerger getWebXmlMerger()
throws java.io.IOException,
org.xml.sax.SAXException,
javax.xml.parsers.ParserConfigurationException
java.io.IOException - on an IO Exception
org.xml.sax.SAXException - on a SAX Parse Exception
javax.xml.parsers.ParserConfigurationException - on Parser config exception
public WebXml getWebXml()
throws java.io.IOException,
org.xml.sax.SAXException,
javax.xml.parsers.ParserConfigurationException
getWebXml in interface WarArchivejava.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()
protected void executeMergeProcessors(java.io.File assembleDir)
throws MergeException,
java.io.IOException
assembleDir - in the directory to output the merge data to
MergeException - when there is a problem
java.io.IOException - if an IO exception
public void store(java.io.File warFile)
throws MergeException,
java.io.IOException,
org.xml.sax.SAXException,
javax.xml.parsers.ParserConfigurationException
store in interface WarArchivewarFile - 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 problem
MergeExceptionWarArchive.store(java.io.File)
public boolean containsClass(java.lang.String theClassName)
throws java.io.IOException
containsClass in interface JarArchivetheClassName - The name of the class to search for
java.io.IOException - If an I/O error occurred reading the archiveJarArchive.containsClass(java.lang.String)
public java.lang.String findResource(java.lang.String theName)
throws java.io.IOException
findResource in interface JarArchivetheName - The name of the resource
java.io.IOException - If an I/O error occurred reading the archiveJarArchive.findResource(java.lang.String)
public java.io.InputStream getResource(java.lang.String thePath)
throws java.io.IOException
getResource in interface JarArchivethePath - The path to the resource in the archive
null if the resource was not found in the JAR
java.io.IOException - If an I/O error occursJarArchive.getResource(java.lang.String)
public java.util.List getResources(java.lang.String thePath)
throws java.io.IOException
getResources in interface JarArchivethePath - The directory
java.io.IOException - If an I/O error occursJarArchive.getResources(java.lang.String)
public void expandToPath(java.lang.String path)
throws java.io.IOException
expandToPath in interface JarArchivepath - The path to expand to
java.io.IOException - If an I/O error occursJarArchive.expandToPath(String)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||