Class MetricsResource
- java.lang.Object
-
- jakarta.servlet.GenericServlet
-
- jakarta.servlet.http.HttpServlet
-
- fish.payara.microprofile.metrics.rest.MetricsResource
-
- All Implemented Interfaces:
jakarta.servlet.Servlet
,jakarta.servlet.ServletConfig
,Serializable
public class MetricsResource extends jakarta.servlet.http.HttpServlet
- See Also:
- Serialized Form
-
-
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 HTTPGET
method.protected void
doOptions(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response)
Handles the HTTPOPTIONS
method.protected void
processRequest(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response)
Processes requests for both HTTPGET
andOPTIONS
methods.-
Methods inherited from class jakarta.servlet.http.HttpServlet
doDelete, doHead, doPost, doPut, doTrace, getLastModified, service, service
-
-
-
-
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 HTTPGET
andOPTIONS
methods.- Parameters:
request
- servlet requestresponse
- servlet response- Throws:
jakarta.servlet.ServletException
- if a servlet-specific error occursIOException
- 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 HTTPGET
method.- Overrides:
doGet
in classjakarta.servlet.http.HttpServlet
- Parameters:
request
- servlet requestresponse
- servlet response- Throws:
jakarta.servlet.ServletException
- if a servlet-specific error occursIOException
- 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 HTTPOPTIONS
method.- Overrides:
doOptions
in classjakarta.servlet.http.HttpServlet
- Parameters:
request
- servlet requestresponse
- servlet response- Throws:
jakarta.servlet.ServletException
- if a servlet-specific error occursIOException
- if an I/O error occurs
-
-