net.java.dev.moskitodemo.servlet
Class SimpleServlet
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
net.java.dev.moskito.web.MoskitoHttpServlet
net.java.dev.moskitodemo.servlet.SimpleServlet
- All Implemented Interfaces:
- Serializable, Servlet, ServletConfig, IStatsProducer
public class SimpleServlet
- extends MoskitoHttpServlet
This is a simple example how to use moskito in a servlet. Basically it provides all the functionality the simple service
provider over web.
- Author:
- another
- See Also:
- Serialized Form
| Methods inherited from class net.java.dev.moskito.web.MoskitoHttpServlet |
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getCategory, getLastModified, getMonitoringIntervals, getProducerId, getStats, getSubsystem, init, moskitoDoDelete, moskitoDoHead, moskitoDoOptions, moskitoDoPost, moskitoDoPut, moskitoDoTrace, moskitoGetLastModified |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MODE_NORMAL_PROCESSING
public static final int MODE_NORMAL_PROCESSING
- See Also:
- Constant Field Values
MODE_RANDOM
public static final int MODE_RANDOM
- See Also:
- Constant Field Values
MODE_ERROR
public static final int MODE_ERROR
- See Also:
- Constant Field Values
rnd
private Random rnd
SimpleServlet
public SimpleServlet()
init
public void init()
- Overrides:
init in class GenericServlet
moskitoDoGet
protected void moskitoDoGet(HttpServletRequest req,
HttpServletResponse res)
throws ServletException,
IOException
- Overrides:
moskitoDoGet in class MoskitoHttpServlet
- Throws:
ServletException
IOException
moskitoShowStats
protected void moskitoShowStats(HttpServletRequest req,
HttpServletResponse res)
throws ServletException,
IOException
- Throws:
ServletException
IOException
useShortStatList
protected boolean useShortStatList()
- Overrides:
useShortStatList in class MoskitoHttpServlet
writeResponse
private void writeResponse(HttpServletResponse res,
int amountOfTimeSlept)
throws IOException
- Throws:
IOException
writeHtmlHead
private void writeHtmlHead(PrintWriter writer,
String title)
Copyright © 2006 MoSKito Project Team. All Rights Reserved.
MoSKito, the open source java monitoring framework