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 |
containsJBossWebContext() |
boolean |
containsJBossWebFile() |
String |
getContext() |
String |
getVirtualHost() |
getExtraClasspath, getName, getType, setContext, setExtraClasspath
equals, getFile, getFileHandler, hashCode, isExpanded, setFileHandler, toString
getLogger, setLogger
public 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 WAR
jboss-web.xml
if any (including, if present, the
virtual host name as a prefix). If there is no jboss-web.xml
or if it doesn't
define any root context, then return WAR.getContext()
.public String getVirtualHost()
jboss-web.xml
file or null if not
definedpublic boolean containsJBossWebFile()
WEB-INF/jboss-web.xml
filepublic boolean containsJBossWebContext()
WEB-INF/jboss-web.xml
file with a contextCopyright © 2004–2018 Github. All rights reserved.