org.logicalcobwebs.proxool.admin.servlet
Class AdminServlet

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by org.logicalcobwebs.proxool.admin.servlet.AdminServlet
All Implemented Interfaces:
java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class AdminServlet
extends javax.servlet.http.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:

Since:
Proxool 0.7
Version:
$Revision: 1.16 $, $Date: 2007/12/14 23:20:41 $
Author:
bill, $Author: billhorsman $ (current maintainer)
See Also:
Serialized Form

Field Summary
static java.lang.String OUTPUT_FULL
          OUtput full HTML including <HTML>, <HEAD> and <BODY> tags.
static java.lang.String OUTPUT_SIMPLE
          OUtput simple HTML excluding <HTML>, <HEAD> and <BODY> tags.
 
Constructor Summary
AdminServlet()
           
 
Method Summary
protected  void doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Show the details for a pool.
protected  void doPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Delegate to doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
 void init(javax.servlet.ServletConfig servletConfig)
           
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service
 
Methods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

OUTPUT_FULL

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

See Also:
output, configuration, Constant Field Values

OUTPUT_SIMPLE

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

See Also:
output, configuration, Constant Field Values
Constructor Detail

AdminServlet

public AdminServlet()
Method Detail

init

public void init(javax.servlet.ServletConfig servletConfig)
          throws javax.servlet.ServletException
Specified by:
init in interface javax.servlet.Servlet
Overrides:
init in class javax.servlet.GenericServlet
Throws:
javax.servlet.ServletException

doPost

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

Overrides:
doPost in class javax.servlet.http.HttpServlet
Throws:
javax.servlet.ServletException
java.io.IOException

doGet

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

Overrides:
doGet in class javax.servlet.http.HttpServlet
Throws:
javax.servlet.ServletException
java.io.IOException