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
@Deprecated(since="2021-05-27") public class StatisticsServlet extends HttpServlet
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
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()Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voiddoPost(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
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 ServletExceptionDeprecated.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, java.io.IOException
Deprecated.- Throws:
ServletExceptionjava.io.IOException
-
-