Class StatisticsServlet

java.lang.Object
jakarta.servlet.GenericServlet
jakarta.servlet.http.HttpServlet
org.eclipse.jetty.servlet.StatisticsServlet
All Implemented Interfaces:
jakarta.servlet.Servlet, jakarta.servlet.ServletConfig, Serializable

public class StatisticsServlet extends jakarta.servlet.http.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 no Accept header specified
See Also: