Class MetricsResource

  • All Implemented Interfaces:
    jakarta.servlet.Servlet, jakarta.servlet.ServletConfig, Serializable

    public class MetricsResource
    extends jakarta.servlet.http.HttpServlet
    See Also:
    Serialized Form
    • Field Summary

      • Fields inherited from class jakarta.servlet.http.HttpServlet

        LEGACY_DO_HEAD
    • Constructor Summary

      Constructors 
      Constructor Description
      MetricsResource()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void doGet​(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response)
      Handles the HTTP GET method.
      protected void doOptions​(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response)
      Handles the HTTP OPTIONS method.
      protected void processRequest​(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response)
      Processes requests for both HTTP GET and OPTIONS methods.
      • Methods inherited from class jakarta.servlet.http.HttpServlet

        doDelete, doHead, doPost, doPut, doTrace, getLastModified, init, service, service
      • Methods inherited from class jakarta.servlet.GenericServlet

        destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
    • Constructor Detail

      • MetricsResource

        public MetricsResource()
    • Method Detail

      • processRequest

        protected void processRequest​(jakarta.servlet.http.HttpServletRequest request,
                                      jakarta.servlet.http.HttpServletResponse response)
                               throws jakarta.servlet.ServletException,
                                      IOException
        Processes requests for both HTTP GET and OPTIONS methods.
        Parameters:
        request - servlet request
        response - servlet response
        Throws:
        jakarta.servlet.ServletException - if a servlet-specific error occurs
        IOException - if an I/O error occurs
      • doGet

        protected void doGet​(jakarta.servlet.http.HttpServletRequest request,
                             jakarta.servlet.http.HttpServletResponse response)
                      throws jakarta.servlet.ServletException,
                             IOException
        Handles the HTTP GET method.
        Overrides:
        doGet in class jakarta.servlet.http.HttpServlet
        Parameters:
        request - servlet request
        response - servlet response
        Throws:
        jakarta.servlet.ServletException - if a servlet-specific error occurs
        IOException - if an I/O error occurs
      • doOptions

        protected void doOptions​(jakarta.servlet.http.HttpServletRequest request,
                                 jakarta.servlet.http.HttpServletResponse response)
                          throws jakarta.servlet.ServletException,
                                 IOException
        Handles the HTTP OPTIONS method.
        Overrides:
        doOptions in class jakarta.servlet.http.HttpServlet
        Parameters:
        request - servlet request
        response - servlet response
        Throws:
        jakarta.servlet.ServletException - if a servlet-specific error occurs
        IOException - if an I/O error occurs