Class TomcatWarArchive
- java.lang.Object
-
- org.codehaus.cargo.module.webapp.tomcat.TomcatWarArchive
-
public class TomcatWarArchive extends Object
Class that encapsulates access to a WAR.
-
-
Constructor Summary
Constructors Constructor Description TomcatWarArchive(String warFile)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TomcatContextXml
getTomcatContextXml()
Returns theMETA-INF/context.xml
deployment descriptor of the web application.
-
-
-
Constructor Detail
-
TomcatWarArchive
public TomcatWarArchive(String warFile) throws IOException, org.jdom2.JDOMException
Constructor.- Parameters:
warFile
- The web application archive- Throws:
IOException
- If there was a problem reading the deployment descriptor in the WARorg.jdom2.JDOMException
- If the deployment descriptor of the WAR could not be parsed
-
-
Method Detail
-
getTomcatContextXml
public TomcatContextXml getTomcatContextXml()
Returns theMETA-INF/context.xml
deployment descriptor of the web application.- Returns:
- The parsed deployment descriptor, or
null
if no such file exists.
-
-