public class JBossWAR extends WAR
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.| Modifier and Type | Method and Description |
|---|---|
boolean |
containsJBossWebFile() |
String |
getContext() |
getType, isExpandedWar, setContextgetFile, getFileHandler, setFileHandlerpublic JBossWAR(String war)
war - the location of the WAR being wrapped. This must point to either a WAR file or an
expanded WAR directory.public String getContext()
getContext in class WARjboss-web.xml if any.
If there is no jboss-web.xml or if it doesn't
define any root context, then return WAR.getContext().public boolean containsJBossWebFile()
WEB-INF/jboss-web.xml
fileCopyright © 2004-2013 Codehaus. All Rights Reserved.