org.logicalcobwebs.proxool.admin.servlet
Class AdminServlet
java.lang.Object
HttpServlet
org.logicalcobwebs.proxool.admin.servlet.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:
- output: full|simple. "full" means with HTML header and body tags "simple" means
just the HTML. Choose "simple" if you are including this servlet within your own
web page. Note that if you choose simple output then you're probably going to want
to consider supplying some CSS to make it look nice.
- cssFile: If you choose full output (see above) then some CSS is included, inline,
in the HTML header. If you specify a URL here then that file is also linked to. It is
linked after the inline CSS so you only have to override thos styles you want to be
different.
- Since:
- Proxool 0.7
- Version:
- $Revision: 1.16 $, $Date: 2007/12/14 23:20:41 $
- Author:
- bill, $Author: billhorsman $ (current maintainer)
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. |
Method Summary |
void |
init(ServletConfig servletConfig)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
AdminServlet
public AdminServlet()
init
public void init(ServletConfig servletConfig)
throws ServletException
- Throws:
ServletException