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
Accept
header for one of the following formats:application/json
text/xml
text/html
text/plain
- default if noAccept
header specified
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description StatisticsServlet()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
doPost(HttpServletRequest request, HttpServletResponse response)
void
init()
-
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 ServletException
- Overrides:
init
in classGenericServlet
- Throws:
ServletException
-
doPost
public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, java.io.IOException
- Throws:
ServletException
java.io.IOException
-
-