Package org.eclipse.jetty.servlet
Class StatisticsServlet
- java.lang.Object
-
- javax.servlet.GenericServlet
-
- javax.servlet.http.HttpServlet
-
- org.eclipse.jetty.servlet.StatisticsServlet
-
- All Implemented Interfaces:
java.io.Serializable,Servlet,ServletConfig
public class StatisticsServlet extends HttpServlet
Collect and report statistics about requests / responses / connections and more.You can use normal HTTP content negotiation to ask for the statistics. Specify a request
Acceptheader for one of the following formats:application/jsontext/xmltext/htmltext/plain- default if noAcceptheader specified
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description StatisticsServlet()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddoPost(HttpServletRequest request, HttpServletResponse response)voidinit()A convenience method which can be overridden so that there's no need to callsuper.init(config).-
Methods inherited from class javax.servlet.http.HttpServlet
service
-
Methods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
-
-
-
-
Method Detail
-
init
public void init() throws ServletExceptionDescription copied from class:GenericServletA convenience method which can be overridden so that there's no need to callsuper.init(config).Instead of overriding
GenericServlet.init(ServletConfig), simply override this method and it will be called byGenericServlet.init(ServletConfig config). TheServletConfigobject can still be retrieved viaGenericServlet.getServletConfig().- Overrides:
initin classGenericServlet- Throws:
ServletException- if an exception occurs that interrupts the servlet's normal operation
-
doPost
public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, java.io.IOException
- Throws:
ServletExceptionjava.io.IOException
-
-