Method Summary |
|
public void | addAlias(String alias) Add an alias name that should be mapped to this same Host. |
public void | addChild(Container child) Add a child Container, only if the proposed child is an implementation
of Context. |
public void | addDefaultContext(DefaultContext defaultContext) Set the DefaultContext
for new web applications. |
public void | backgroundProcess() Execute a periodic task, such as reloading, etc. |
public ObjectName | createObjectName(String domain, ObjectName parent) |
public String[] | findAliases() Return the set of alias names for this Host. |
public Context | findDeployedApp(String contextPath) Return the Context for the deployed application that is associated
with the specified context path (if any); otherwise return
null . |
public String[] | findDeployedApps() Return the context paths of all deployed web applications in this
Container. |
public String[] | getAliases() |
public String | getAppBase() Return the application root for this Host. |
public boolean | getAutoDeploy() Return the value of the auto deploy flag. |
public String | getConfigClass() Return the Java class name of the context configuration class
for new web applications. |
public String | getContextClass() Return the Java class name of the Context implementation class
for new web applications. |
public DefaultContext | getDefaultContext() Retrieve the DefaultContext for new web applications. |
public boolean | getDeployOnStartup() Return the value of the deploy on startup flag. |
public Deployer | getDeployer() |
public String | getErrorReportValveClass() Return the Java class name of the error report valve class
for new web applications. |
public String | getInfo() Return descriptive information about this Container implementation and
the corresponding version number, in the format
<description>/<version> . |
public boolean | getLiveDeploy() Return the value of the live deploy flag. |
public String | getName() Return the canonical, fully qualified, name of the virtual host
this Container represents. |
public String[] | getValveNames() |
public String | getWorkDir() Host work directory base. |
public boolean | getXmlNamespaceAware() Get the server.xml attribute's xmlNamespaceAware. |
public boolean | getXmlValidation() Get the server.xml attribute's xmlValidation. |
public void | importDefaultContext(Context context) Import the DefaultContext config into a web application context. |
public void | init() |
public void | install(String contextPath, URL war) Install a new web application, whose web application archive is at the
specified URL, into this container with the specified context path.
A context path of "" (the empty string) should be used for the root
application for this container. |
public synchronized void | install(URL config, URL war) Install a new web application, whose context configuration file
(consisting of a <Context> element) and web
application archive are at the specified URLs.
If this application is successfully installed, a ContainerEvent
of type INSTALL_EVENT will be sent to all registered
listeners, with the newly created Context as an argument. |
public synchronized void | install(URL war) Installs a new web application from the web application archive at the
specified URL, which must contain a META-INF/context.xml context
configuration file (consisting of a <Context>
element).
The web application is installed at the path specified inside the
embedded META-INF/context.xml. |
public void | installDefaultContext(Context context) Install the StandardContext portion of the DefaultContext
configuration into current Context. |
public boolean | isDeployXML() Deploy XML Context config files flag accessor. |
public boolean | isUnpackWARs() Unpack WARs flag accessor. |
public Context | map(String uri) Return the Context that would be used to process the specified
host-relative request URI, if any; otherwise return null . |
public ObjectName | preRegister(MBeanServer server, ObjectName oname) |
public void | remove(String contextPath) Remove an existing web application, attached to the specified context
path. |
public void | remove(String contextPath, boolean undeploy) Remove an existing web application, attached to the specified context
path. |
public void | removeAlias(String alias) Remove the specified alias name from the aliases for this Host. |
public void | setAppBase(String appBase) Set the application root for this Host. |
public void | setAutoDeploy(boolean autoDeploy) Set the auto deploy flag value for this host. |
public void | setConfigClass(String configClass) Set the Java class name of the context configuration class
for new web applications. |
public void | setContextClass(String contextClass) Set the Java class name of the Context implementation class
for new web applications. |
public void | setDeployOnStartup(boolean deployOnStartup) Set the deploy on startup flag value for this host. |
public void | setDeployXML(boolean deployXML) Deploy XML Context config files flag mutator. |
public void | setDeployer(Deployer d) |
public void | setErrorReportValveClass(String errorReportValveClass) Set the Java class name of the error report valve class
for new web applications. |
public void | setLiveDeploy(boolean liveDeploy) Set the live deploy flag value for this host. |
public void | setName(String name) Set the canonical, fully qualified, name of the virtual host
this Container represents. |
public void | setUnpackWARs(boolean unpackWARs) Unpack WARs flag mutator. |
public void | setWorkDir(String workDir) Host work directory base. |
public void | setXmlNamespaceAware(boolean xmlNamespaceAware) Set the namespace aware feature of the XML parser used when
parsing xml instances. |
public void | setXmlValidation(boolean xmlValidation) Set the validation feature of the XML parser used when
parsing xml instances. |
public synchronized void | start() Start this host. |
public void | start(String contextPath) Start an existing web application, attached to the specified context
path. |
public void | stop(String contextPath) Stop an existing web application, attached to the specified context
path. |
public String | toString() Return a String representation of this component. |