| java.lang.Object org.apache.cactus.integration.ant.deployment.EarParser
EarParser | public class EarParser (Code) | | Parse an EAR descriptor to extract meaninful information for Cactus,
the results being stored in a
EarDeployableFile object.
since: Cactus 1.5 version: $Id: EarParser.java 239003 2004-05-31 20:05:27Z vmassol $ |
getUriOfCactifiedWebModule | final protected static String getUriOfCactifiedWebModule(EarArchive theEar) throws SAXException, IOException, ParserConfigurationException(Code) | | Finds the web module in the EAR that contains the servlet test
redirector, and returns the web-uri of the module found.
A web-app is considered cactified when it contains at least a
mapping for the Cactus servlet test redirector
The URI of the cactified web-module, or null if nocactified web-app could be found Parameters: theEar - the EAR archive from which to extract the web URI throws: IOException - If there was a problem reading the deploymentdescriptor in the WAR throws: SAXException - If the deployment descriptor of the WAR could notbe parsed throws: ParserConfigurationException - If there is an XML parserconfigration problem |
parse | final public static EarDeployableFile parse(File theDeployableFile)(Code) | | Parse an EAR descriptor to extract meaninful information for Cactus.
Parameters: theDeployableFile - the file to parse and deploy the parse results as a EarDeployableFile object |
parseTestContext | final protected static String parseTestContext(EarArchive theEar, String theWebUri) throws ParserConfigurationException, IOException, SAXException(Code) | | Find the test context from the EAR archive.
the test context Parameters: theEar - the EAR archive from which to extract the test context Parameters: theWebUri - the WAR URI of the WAR file in the EAR from which toextract the test context throws: IOException - If there was a problem reading the deploymentdescriptor in the WAR throws: SAXException - If the deployment descriptor of the WAR could notbe parsed throws: ParserConfigurationException - If there is an XML parserconfigration problem |
|
|