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, sm, wrapper
Constructor and Description |
---|
HTMLHostManagerServlet() |
Modifier and Type | Method and Description |
---|---|
protected java.lang.String |
add(HttpServletRequest request,
java.lang.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,
java.lang.String message,
StringManager smClient)
Render a HTML list of the currently active Contexts in our virtual host,
and memory and server status information.
|
protected java.lang.String |
remove(java.lang.String name,
StringManager smClient)
Remove the specified host.
|
protected java.lang.String |
start(java.lang.String name,
StringManager smClient)
Start the host with the specified name.
|
protected java.lang.String |
stop(java.lang.String name,
StringManager smClient)
Stop the host with the specified name.
|
add, add, booleanParameter, destroy, getConfigBase, 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 java.io.IOException, ServletException
doGet
in class HostManagerServlet
request
- The servlet request we are processingresponse
- The servlet response we are creatingjava.io.IOException
- 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, java.io.IOException
doPost
in class HttpServlet
request
- The servlet request we are processingresponse
- The servlet response we are creatingjava.io.IOException
- if an input/output error occursServletException
- if a servlet-specified error occursServletOutputStream
,
ServletResponse.setContentType(java.lang.String)
protected java.lang.String add(HttpServletRequest request, java.lang.String name, StringManager smClient)
name
- host nameprotected java.lang.String remove(java.lang.String name, StringManager smClient)
name
- host nameprotected java.lang.String start(java.lang.String name, StringManager smClient)
name
- Host nameprotected java.lang.String stop(java.lang.String name, StringManager smClient)
name
- Host namepublic void list(HttpServletRequest request, HttpServletResponse response, java.lang.String message, StringManager smClient) throws java.io.IOException
request
- The requestresponse
- The responsemessage
- a message to displayjava.io.IOException
Copyright © 2000-2018 Apache Software Foundation. All Rights Reserved.