|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.cactus.integration.ant.deployment.EarParser
public class EarParser
Parse an EAR descriptor to extract meaninful information for Cactus,
the results being stored in a EarDeployableFile
object.
Constructor Summary | |
---|---|
EarParser()
|
Method Summary | |
---|---|
protected static java.lang.String |
getUriOfCactifiedWebModule(org.codehaus.cargo.module.application.EarArchive theEar)
Finds the web module in the EAR that contains the servlet test redirector, and returns the web-uri of the module found. |
static EarDeployableFile |
parse(java.io.File theDeployableFile)
Parse an EAR descriptor to extract meaninful information for Cactus. |
protected static java.lang.String |
parseTestContext(org.codehaus.cargo.module.application.EarArchive theEar,
java.lang.String theWebUri)
Find the test context from the EAR archive. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public EarParser()
Method Detail |
---|
public static final EarDeployableFile parse(java.io.File theDeployableFile)
theDeployableFile
- the file to parse and deploy
EarDeployableFile
objectprotected static final java.lang.String parseTestContext(org.codehaus.cargo.module.application.EarArchive theEar, java.lang.String theWebUri) throws javax.xml.parsers.ParserConfigurationException, java.io.IOException, org.xml.sax.SAXException
theEar
- the EAR archive from which to extract the test contexttheWebUri
- the WAR URI of the WAR file in the EAR from which to
extract the test context
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 problemprotected static final java.lang.String getUriOfCactifiedWebModule(org.codehaus.cargo.module.application.EarArchive theEar) throws org.xml.sax.SAXException, java.io.IOException, javax.xml.parsers.ParserConfigurationException
theEar
- the EAR archive from which to extract the web URI
null
if no
cactified web-app could be found
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |