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:
Serializable,Servlet,ServletConfig
Deprecated.
The Eclipse Jetty and Apache Felix Http Jetty packages are no longer supported.
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/jsontext/xmltext/htmltext/plain- default if noAcceptheader specified
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddoPost(HttpServletRequest request, HttpServletResponse response) Deprecated.voidinit()Deprecated.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
serviceMethods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
-
Constructor Details
-
StatisticsServlet
public StatisticsServlet()Deprecated.
-
-
Method Details
-
init
Deprecated.Description 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, IOException Deprecated.- Throws:
ServletExceptionIOException
-