org.codehaus.cargo.module.webapp.tomcat
Class TomcatWarArchive

java.lang.Object
  extended by org.codehaus.cargo.module.webapp.tomcat.TomcatWarArchive

public class TomcatWarArchive
extends java.lang.Object

Class that encapsulates access to a WAR.

Version:
$Id: TomcatWarArchive.java 1160 2006-07-30 20:15:34Z vmassol $

Constructor Summary
TomcatWarArchive(java.lang.String warFile)
          Constructor.
 
Method Summary
 TomcatContextXml getTomcatContextXml()
          Returns the META-INF/context.xml deployment descriptor of the web application.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TomcatWarArchive

public TomcatWarArchive(java.lang.String warFile)
                 throws java.io.IOException,
                        org.xml.sax.SAXException,
                        javax.xml.parsers.ParserConfigurationException
Constructor.

Parameters:
warFile - The web application archive
Throws:
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 configration problem
Method Detail

getTomcatContextXml

public final TomcatContextXml getTomcatContextXml()
Returns the META-INF/context.xml deployment descriptor of the web application.

Returns:
The parsed deployment descriptor, or null if no such file exists.


Copyright © 2004-2010 Codehaus. All Rights Reserved.