Methods Summary |
---|
public Context | findDeployedApp(java.lang.String contextPath)Return the Context for the deployed application that is associated
with the specified context path (if any); otherwise return
null .
|
public java.lang.String[] | findDeployedApps()Return the context paths of all deployed web applications in this
Container. If there are no deployed applications, a zero-length
array is returned.
|
public java.lang.String | getName()Return the name of the Container with which this Deployer is associated.
|
public void | install(java.lang.String contextPath, java.net.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. Otherwise, the context path must
start with a slash.
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 void | install(java.net.URL config, java.net.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 void | remove(java.lang.String contextPath)Remove an existing web application, attached to the specified context
path. If this application is successfully removed, a
ContainerEvent of type REMOVE_EVENT will be sent to all
registered listeners, with the removed Context as
an argument.
|
public void | remove(java.lang.String contextPath, boolean undeploy)Remove an existing web application, attached to the specified context
path. If this application is successfully removed, a
ContainerEvent of type REMOVE_EVENT will be sent to all
registered listeners, with the removed Context as
an argument. Deletes the web application war file and/or directory
if they exist in the Host's appBase.
|
public void | start(java.lang.String contextPath)Start an existing web application, attached to the specified context
path. Only starts a web application if it is not running.
|
public void | stop(java.lang.String contextPath)Stop an existing web application, attached to the specified context
path. Only stops a web application if it is running.
|