org.logicalcobwebs.proxool.admin.servlet

Class AdminServlet


public class AdminServlet
extends HttpServlet

Use this to admin each pool within Proxool. It acts like a normal servlet., so just configure it within your web app as you see fit. For example, within web.xml:
   <servlet>
       <servlet-name>Admin</servlet-name>
       <servlet-class>org.logicalcobwebs.proxool.admin.servlet.AdminServlet</servlet-class>
       <init-param>
            <param-name>output</param-name>
            <param-value>full|simple</param-value>
        </init-param>
        <init-param>
            <param-name>cssFile</param-name>
            <param-value>/my_path/my.css</param-value>
        </init-param>
   </servlet>
   <servlet-mapping>
       <servlet-name>Admin</servlet-name>
       <url-pattern>/proxool</url-pattern>
   </servlet-mapping>
 
Options:
Version:
$Revision: 1.16 $, $Date: 2007/12/14 23:20:41 $
Authors:
bill
$Author: billhorsman $ (current maintainer)
Since:
Proxool 0.7

Field Summary

static String
OUTPUT_FULL
OUtput full HTML including <HTML>, <HEAD> and <BODY> tags.
static String
OUTPUT_SIMPLE
OUtput simple HTML excluding <HTML>, <HEAD> and <BODY> tags.

Method Summary

protected void
doGet(HttpServletRequest request, HttpServletResponse response)
Show the details for a pool.
protected void
doPost(HttpServletRequest request, HttpServletResponse response)
Delegate to doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
void
init(ServletConfig servletConfig)

Field Details

OUTPUT_FULL

public static final String OUTPUT_FULL
OUtput full HTML including <HTML>, <HEAD> and <BODY> tags.

OUTPUT_SIMPLE

public static final String OUTPUT_SIMPLE
OUtput simple HTML excluding <HTML>, <HEAD> and <BODY> tags.

Method Details

doGet

protected void doGet(HttpServletRequest request,
                     HttpServletResponse response)
            throws ServletException,
                   IOException
Show the details for a pool.

doPost

protected void doPost(HttpServletRequest request,
                      HttpServletResponse response)
            throws ServletException,
                   IOException
Delegate to doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)

init

public void init(ServletConfig servletConfig)
            throws ServletException