public class MoskitoHttpServlet extends javax.servlet.http.HttpServlet implements IStatsProducer
| Constructor and Description |
|---|
MoskitoHttpServlet() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doDelete(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res) |
protected void |
doGet(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res) |
protected void |
doHead(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res) |
protected void |
doOptions(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res) |
protected void |
doPost(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res) |
protected void |
doPut(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res) |
protected void |
doTrace(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res) |
String |
getCategory() |
protected long |
getLastModified(javax.servlet.http.HttpServletRequest req) |
protected Interval[] |
getMonitoringIntervals()
Override this method if you want other monitoring intevals as default (from start, 1,5,15m, 1h and 1d).
|
String |
getProducerId()
Returns the producer id.
|
List<IStats> |
getStats() |
String |
getSubsystem() |
void |
init(javax.servlet.ServletConfig config)
Creates the stats objects.
|
protected void |
moskitoDoDelete(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
Override this method to react on http delete method.
|
protected void |
moskitoDoGet(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
Override this method to react on http get method.
|
protected void |
moskitoDoHead(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
Override this method to react on http head method.
|
protected void |
moskitoDoOptions(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
Override this method to react on http options method.
|
protected void |
moskitoDoPost(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
Override this method to react on http post method.
|
protected void |
moskitoDoPut(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
Override this method to react on http put method.
|
protected void |
moskitoDoTrace(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
Override this method to react on http trace method.
|
protected long |
moskitoGetLastModified(javax.servlet.http.HttpServletRequest req)
Override this method to implement lastModfied method.
|
protected boolean |
useShortStatList()
Override this method and return true, if you want the short list of stats (doGet and doPost only).
|
public void init(javax.servlet.ServletConfig config)
throws javax.servlet.ServletException
init in interface javax.servlet.Servletinit in class javax.servlet.GenericServletjavax.servlet.ServletExceptionprotected final void doDelete(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
throws javax.servlet.ServletException,
IOException
doDelete in class javax.servlet.http.HttpServletjavax.servlet.ServletExceptionIOExceptionprotected final void doGet(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
throws javax.servlet.ServletException,
IOException
doGet in class javax.servlet.http.HttpServletjavax.servlet.ServletExceptionIOExceptionprotected final void doHead(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
throws javax.servlet.ServletException,
IOException
doHead in class javax.servlet.http.HttpServletjavax.servlet.ServletExceptionIOExceptionprotected final void doOptions(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
throws javax.servlet.ServletException,
IOException
doOptions in class javax.servlet.http.HttpServletjavax.servlet.ServletExceptionIOExceptionprotected final void doPost(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
throws javax.servlet.ServletException,
IOException
doPost in class javax.servlet.http.HttpServletjavax.servlet.ServletExceptionIOExceptionprotected final void doPut(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
throws javax.servlet.ServletException,
IOException
doPut in class javax.servlet.http.HttpServletjavax.servlet.ServletExceptionIOExceptionprotected final void doTrace(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
throws javax.servlet.ServletException,
IOException
doTrace in class javax.servlet.http.HttpServletjavax.servlet.ServletExceptionIOExceptionprotected final long getLastModified(javax.servlet.http.HttpServletRequest req)
getLastModified in class javax.servlet.http.HttpServletprotected void moskitoDoDelete(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
throws javax.servlet.ServletException,
IOException
javax.servlet.ServletExceptionIOExceptionprotected void moskitoDoGet(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
throws javax.servlet.ServletException,
IOException
javax.servlet.ServletExceptionIOExceptionprotected void moskitoDoHead(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
throws javax.servlet.ServletException,
IOException
javax.servlet.ServletExceptionIOExceptionprotected void moskitoDoOptions(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
throws javax.servlet.ServletException,
IOException
javax.servlet.ServletExceptionIOExceptionprotected void moskitoDoPost(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
throws javax.servlet.ServletException,
IOException
javax.servlet.ServletExceptionIOExceptionprotected void moskitoDoPut(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
throws javax.servlet.ServletException,
IOException
javax.servlet.ServletExceptionIOExceptionprotected void moskitoDoTrace(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
throws javax.servlet.ServletException,
IOException
javax.servlet.ServletExceptionIOExceptionprotected long moskitoGetLastModified(javax.servlet.http.HttpServletRequest req)
public String getProducerId()
getProducerId in interface IStatsProducerpublic List<IStats> getStats()
getStats in interface IStatsProducerprotected boolean useShortStatList()
protected Interval[] getMonitoringIntervals()
public String getCategory()
getCategory in interface IStatsProducerpublic String getSubsystem()
getSubsystem in interface IStatsProducerCopyright © 2010-2016 anotheria.net. All Rights Reserved.