org.apache.catalina.manager.host

Class HTMLHostManagerServlet

public final class HTMLHostManagerServlet extends HostManagerServlet

Servlet that enables remote management of the virtual hosts deployed on the server. 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 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

Version: $Revision: 662585 $, $Date: 2008-06-02 23:44:22 +0200 (Mon, 02 Jun 2008) $

Author: Bip Thelin Malcolm Edgar Glenn L. Nielsen Peter Rossbach

See Also: ManagerServlet

Method Summary
protected Stringadd(HttpServletRequest request, String name)
Add a host using the specified parameters.
voiddoGet(HttpServletRequest request, HttpServletResponse response)
Process a GET request for the specified resource.
voidlist(HttpServletRequest request, HttpServletResponse response, String message)
Render a HTML list of the currently active Contexts in our virtual host, and memory and server status information.
protected Stringremove(String name)
Remove the specified host.
protected Stringstart(String name)
Start the host with the specified name.
protected Stringstop(String name)
Stop the host with the specified name.

Method Detail

add

protected String add(HttpServletRequest request, String name)
Add a host using the specified parameters.

Parameters: name host name

doGet

public void doGet(HttpServletRequest request, HttpServletResponse response)
Process a GET request for the specified resource.

Parameters: request The servlet request we are processing response The servlet response we are creating

Throws: IOException if an input/output error occurs ServletException if a servlet-specified error occurs

list

public void list(HttpServletRequest request, HttpServletResponse response, String message)
Render a HTML list of the currently active Contexts in our virtual host, and memory and server status information.

Parameters: request The request response The response message a message to display

remove

protected String remove(String name)
Remove the specified host.

Parameters: writer Writer to render results to name host name

start

protected String start(String name)
Start the host with the specified name.

Parameters: name Host name

stop

protected String stop(String name)
Stop the host with the specified name.

Parameters: name Host name

Copyright © 2000-2011 Apache Software Foundation. All Rights Reserved.