|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.servlet.GenericServlet
javax.servlet.http.HttpServlet
org.apache.catalina.manager.ManagerServlet
org.apache.catalina.manager.HTMLManagerServlet
public final class HTMLManagerServlet
Servlet that enables remote management of the web applications deployed within the same virtual host as this web application is. Normally, this functionality will be protected by a security constraint in the web application deployment descriptor. However, this requirement can be relaxed during testing.
The difference between the ManagerServlet
and this
Servlet is that this Servlet prints out a HTML interface which
makes it easier to administrate.
However if you use a software that parses the output of
ManagerServlet
ManagerServlet
ManagerServlet
,
Serialized FormField Summary |
---|
Fields inherited from class org.apache.catalina.manager.ManagerServlet |
---|
appBase, configBase, context, contextDescriptors, debug, deployed, global, host, mBeanServer, oname, sm, versioned, wrapper |
Constructor Summary | |
---|---|
HTMLManagerServlet()
|
Method Summary | |
---|---|
protected java.lang.String |
deployInternal(java.lang.String config,
java.lang.String path,
java.lang.String war)
Deploy an application for the specified path from the specified web application archive. |
void |
doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Process a GET request for the specified resource. |
void |
doPost(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Process a POST request for the specified resource. |
void |
list(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
java.lang.String message)
Render a HTML list of the currently active Contexts in our virtual host, and memory and server status information. |
protected java.lang.String |
reload(java.lang.String path)
Reload the web application at the specified context path. |
java.lang.String |
sessions(java.lang.String path)
Display session information and invoke list. |
java.lang.String |
start(java.lang.String path)
Start the web application at the specified context path. |
protected java.lang.String |
stop(java.lang.String path)
Stop the web application at the specified context path. |
protected java.lang.String |
undeploy(java.lang.String path)
Undeploy the web application at the specified context path. |
Methods inherited from class org.apache.catalina.manager.ManagerServlet |
---|
addServiced, check, copy, copyInternal, deploy, deploy, deploy, destroy, doPut, getAppBase, getConfigFile, getDocBase, getWrapper, init, isDeployed, isServiced, list, printResources, reload, removeServiced, resources, roles, save, serverinfo, sessions, setWrapper, start, stop, undeploy, undeployDir, uploadWar |
Methods inherited from class javax.servlet.http.HttpServlet |
---|
doDelete, doHead, doOptions, doTrace, getLastModified, service, service |
Methods inherited from class javax.servlet.GenericServlet |
---|
getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HTMLManagerServlet()
Method Detail |
---|
public void doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws java.io.IOException, javax.servlet.ServletException
doGet
in class ManagerServlet
request
- The servlet request we are processingresponse
- The servlet response we are creating
java.io.IOException
- if an input/output error occurs
javax.servlet.ServletException
- if a servlet-specified error occursServletResponse.setContentType(java.lang.String)
public void doPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws java.io.IOException, javax.servlet.ServletException
doPost
in class javax.servlet.http.HttpServlet
request
- The servlet request we are processingresponse
- The servlet response we are creating
java.io.IOException
- if an input/output error occurs
javax.servlet.ServletException
- if a servlet-specified error occursServletOutputStream
,
ServletResponse.setContentType(java.lang.String)
protected java.lang.String deployInternal(java.lang.String config, java.lang.String path, java.lang.String war)
config
- URL of the context configuration file to be deployedpath
- Context path of the application to be deployedwar
- URL of the web application archive to be deployed
public void list(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, java.lang.String message) throws java.io.IOException
request
- The requestresponse
- The responsemessage
- a message to display
java.io.IOException
protected java.lang.String reload(java.lang.String path)
path
- Context path of the application to be restarted
ManagerServlet.reload(PrintWriter, String)
protected java.lang.String undeploy(java.lang.String path)
path
- Context path of the application to be undeployd
ManagerServlet.undeploy(PrintWriter, String)
public java.lang.String sessions(java.lang.String path)
path
- Context path of the application to list session information
ManagerServlet.sessions(PrintWriter, String)
public java.lang.String start(java.lang.String path)
path
- Context path of the application to be started
ManagerServlet.start(PrintWriter, String)
protected java.lang.String stop(java.lang.String path)
path
- Context path of the application to be stopped
ManagerServlet.stop(PrintWriter, String)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |