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 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 |
persist(StringManager smClient)
Persist the current configuration to server.xml.
|
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, getWrapper, init, list, persist, 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)
request
- The Servlet requestname
- Host namesmClient
- StringManager for the client's localeprotected String remove(String name, StringManager smClient)
name
- Host namesmClient
- StringManager for the client's localeprotected String start(String name, StringManager smClient)
name
- Host namesmClient
- StringManager for the client's localeprotected String stop(String name, StringManager smClient)
name
- Host namesmClient
- StringManager for the client's localeprotected String persist(StringManager smClient)
smClient
- i18n resources localized for the clientpublic void list(HttpServletRequest request, HttpServletResponse response, String message, StringManager smClient) throws IOException
request
- The requestresponse
- The responsemessage
- a message to displaysmClient
- StringManager for the client's localeIOException
- An IO error occurredCopyright © 2000-2016 Apache Software Foundation. All Rights Reserved.