|
||||||||||
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 this 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. |
protected void |
install(java.io.PrintWriter writer,
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(java.io.PrintWriter writer,
java.lang.String message)
Render a HTML list of the currently active Contexts in our virtual host, and memory and server status information. |
protected void |
reload(java.io.PrintWriter writer,
java.lang.String path)
Reload the web application at the specified context path. |
protected void |
remove(java.io.PrintWriter writer,
java.lang.String path)
Remove the web application at the specified context path. |
void |
sessions(java.io.PrintWriter writer,
java.lang.String path)
Display session information and invoke list. |
void |
start(java.io.PrintWriter writer,
java.lang.String path)
Start the web application at the specified context path. |
protected void |
stop(java.io.PrintWriter writer,
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, list, printResources, resources, roles, setWrapper, undeploy, undeployDir, uploadWar |
Methods inherited from class javax.servlet.http.HttpServlet |
doDelete, doHead, doOptions, doPost, 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 occursprotected void install(java.io.PrintWriter writer, java.lang.String config, java.lang.String path, java.lang.String war)
install
in class ManagerServlet
writer
- Writer to render results toconfig
- 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 installedpublic void list(java.io.PrintWriter writer, java.lang.String message)
writer
- Writer to render tomessage
- a message to displayprotected void reload(java.io.PrintWriter writer, java.lang.String path)
reload
in class ManagerServlet
writer
- Writer to render topath
- Context path of the application to be restartedManagerServlet.reload(PrintWriter, String)
protected void remove(java.io.PrintWriter writer, java.lang.String path)
remove
in class ManagerServlet
writer
- Writer to render topath
- Context path of the application to be removedManagerServlet.remove(PrintWriter, String)
public void sessions(java.io.PrintWriter writer, java.lang.String path)
sessions
in class ManagerServlet
writer
- Writer to render topath
- Context path of the application to list session information forManagerServlet.sessions(PrintWriter, String)
public void start(java.io.PrintWriter writer, java.lang.String path)
start
in class ManagerServlet
writer
- Writer to render topath
- Context path of the application to be startedManagerServlet.start(PrintWriter, String)
protected void stop(java.io.PrintWriter writer, java.lang.String path)
stop
in class ManagerServlet
writer
- Writer to render topath
- Context path of the application to be stoppedManagerServlet.stop(PrintWriter, String)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |