Class JBossWebXmlIo
- java.lang.Object
-
- org.codehaus.cargo.module.AbstractDescriptorIo
-
- org.codehaus.cargo.module.webapp.jboss.JBossWebXmlIo
-
- All Implemented Interfaces:
DescriptorIo
public class JBossWebXmlIo extends AbstractDescriptorIo
Provides convenience methods for reading JBoss web context descriptor.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
JBossWebXmlIo(DescriptorType factory)
Constructor.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static JBossWebXml
parseJBossWebXml(InputStream theInput)
Parses a deployment descriptor provided as input stream.-
Methods inherited from class org.codehaus.cargo.module.AbstractDescriptorIo
createDocumentBuilder, createDocumentBuilder, getEntityResolver, parseXml, parseXml, writeAll, writeDescriptor, writeDescriptor, writeDescriptor, writeDescriptor
-
-
-
-
Constructor Detail
-
JBossWebXmlIo
protected JBossWebXmlIo(DescriptorType factory)
Constructor.- Parameters:
factory
- Descriptor Type
-
-
Method Detail
-
parseJBossWebXml
public static JBossWebXml parseJBossWebXml(InputStream theInput) throws IOException, org.jdom2.JDOMException
Parses a deployment descriptor provided as input stream.- Parameters:
theInput
- The input stream- Returns:
- The parsed descriptor
- Throws:
IOException
- If an I/O error occursorg.jdom2.JDOMException
- If the XML parser was not correctly configured
-
-