org.codehaus.cargo.container.jboss
Class JBossWAR
java.lang.Object
org.codehaus.cargo.util.log.LoggedObject
org.codehaus.cargo.container.spi.deployable.AbstractDeployable
org.codehaus.cargo.container.deployable.WAR
org.codehaus.cargo.container.jboss.JBossWAR
- All Implemented Interfaces:
- org.codehaus.cargo.container.deployable.Deployable, org.codehaus.cargo.util.log.Loggable
- public class JBossWAR
- extends org.codehaus.cargo.container.deployable.WAR
Extension that supports custom JBoss descriptor files such as the jboss-web.xml
one.
For example, this allows returning the right web context even if it has been defined in the
jboss-web.xml
file.
- Version:
- $Id: JBossWAR.java 1160 2006-07-30 20:15:34Z vmassol $
Constructor Summary |
JBossWAR(java.lang.String war)
|
Methods inherited from class org.codehaus.cargo.container.deployable.WAR |
getType, isExpandedWar, setContext |
Methods inherited from class org.codehaus.cargo.container.spi.deployable.AbstractDeployable |
getFile, getFileHandler, setFileHandler |
Methods inherited from class org.codehaus.cargo.util.log.LoggedObject |
getLogger, setLogger |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.codehaus.cargo.util.log.Loggable |
getLogger, setLogger |
JBossWAR
public JBossWAR(java.lang.String war)
- Parameters:
war
- the location of the WAR being wrapped. This must point to either a WAR file or an
expanded WAR directory.
getContext
public java.lang.String getContext()
- Returns:
- the context defined in
jboss-web.xml
if any.
If there is no jboss-web.xml
or if it doesn't
define any root context, then return WAR.getContext()
.
containsJBossWebFile
public boolean containsJBossWebFile()
- Returns:
- true if the WAR contains a
WEB-INF/jboss-web.xml
file
Copyright © 2004-2007 Codehaus. All Rights Reserved.