public class TomcatWAR extends WAR
context.xml files located
in the META-INF/ directory of your WAR. For example, this allows
returning the right web context even if it has been defined in the
context.xml file.| Modifier and Type | Method and Description |
|---|---|
boolean |
containsContextFile() |
String |
getContext() |
getType, isExpandedWar, setContextgetFile, getFileHandler, setFileHandlerpublic TomcatWAR(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 WARcontext.xml if any.
If there is no context.xml or if it doesn't
define any root context, then return WAR.getContext().public boolean containsContextFile()
META-INF/context.xml
fileCopyright © 2004-2013 Codehaus. All Rights Reserved.