public final class HTMLHostManagerServlet extends HostManagerServlet
The difference between the HostManagerServlet
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
HostManagerServlet
you won't be able to upgrade
to this Servlet since the output are not in the
same format as from HostManagerServlet
ManagerServlet
,
Serialized Formcontext, debug, engine, installedHost, mBeanServer, sm, wrapper
Constructor and Description |
---|
HTMLHostManagerServlet() |
Modifier and Type | Method and Description |
---|---|
protected String |
add(HttpServletRequest request,
String name,
StringManager smClient)
Add a host using the specified parameters.
|
void |
doGet(HttpServletRequest request,
HttpServletResponse response)
Process a GET request for the specified resource.
|
void |
doPost(HttpServletRequest request,
HttpServletResponse response)
Process a POST request for the specified resource.
|
void |
list(HttpServletRequest request,
HttpServletResponse response,
String message,
StringManager smClient)
Render a HTML list of the currently active Contexts in our virtual host,
and memory and server status information.
|
protected String |
remove(String name,
StringManager smClient)
Remove the specified host.
|
protected String |
start(String name,
StringManager smClient)
Start the host with the specified name.
|
protected String |
stop(String name,
StringManager smClient)
Stop the host with the specified name.
|
add, add, booleanParameter, destroy, getConfigBase, getStringManager, getWrapper, init, list, remove, setWrapper, start, stop
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service
getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
public void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException
doGet
in class HostManagerServlet
request
- The servlet request we are processingresponse
- The servlet response we are creatingIOException
- if an input/output error occursServletException
- if a servlet-specified error occursServletResponse.setContentType(java.lang.String)
public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
doPost
in class HttpServlet
request
- The servlet request we are processingresponse
- The servlet response we are creatingIOException
- if an input/output error occursServletException
- if a servlet-specified error occursServletOutputStream
,
ServletResponse.setContentType(java.lang.String)
protected String add(HttpServletRequest request, String name, StringManager smClient)
name
- host nameprotected String remove(String name, StringManager smClient)
name
- host nameprotected String start(String name, StringManager smClient)
name
- Host nameprotected String stop(String name, StringManager smClient)
name
- Host namepublic void list(HttpServletRequest request, HttpServletResponse response, String message, StringManager smClient) throws IOException
request
- The requestresponse
- The responsemessage
- a message to displayIOException
Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.