|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--javax.servlet.GenericServlet | +--javax.servlet.http.HttpServlet | +--org.apache.catalina.servlets.ManagerServlet | +--org.apache.catalina.servlets.HTMLManagerServlet
Servlet that enables remote management of the web applications installed 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.servlets.ManagerServlet |
context, debug, deployed, deployer, global, sm, wrapper |
Constructor Summary | |
HTMLManagerServlet()
|
Method Summary | |
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. |
protected java.lang.String |
install(java.lang.String config,
java.lang.String path,
java.lang.String war)
Install an application for the specified path from the specified web application archive. |
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. |
protected java.lang.String |
remove(java.lang.String path)
Remove 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. |
Methods inherited from class org.apache.catalina.servlets.ManagerServlet |
deploy, destroy, doPut, extractXml, getWrapper, init, install, list, printResources, reload, remove, resources, roles, 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 occurspublic 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 occursprotected java.lang.String install(java.lang.String config, java.lang.String path, java.lang.String war)
config
- URL of the context configuration file to be installedpath
- Context path of the application to be installedwar
- URL of the web application archive to be installed
public void list(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, java.lang.String message) throws java.io.IOException
message
- 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 remove(java.lang.String path)
path
- Context path of the application to be removed
ManagerServlet.remove(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 |