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
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()
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
doPost(HttpServletRequest request, HttpServletResponse response)
Deprecated.void
init()
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 ServletException
Deprecated.Description copied from class:GenericServlet
A 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)
. TheServletConfig
object can still be retrieved viaGenericServlet.getServletConfig()
.- Overrides:
init
in 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:
ServletException
java.io.IOException
-
-