Class OnlyInternalHealthCheckServlet
java.lang.Object
jakarta.servlet.GenericServlet
jakarta.servlet.http.HttpServlet
org.sdase.commons.server.healthcheck.servlet.OnlyInternalHealthCheckServlet
- All Implemented Interfaces:
jakarta.servlet.Servlet
,jakarta.servlet.ServletConfig
,Serializable
public class OnlyInternalHealthCheckServlet
extends jakarta.servlet.http.HttpServlet
Servlet that provides only the internal health check data of the application as JSON
response
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionOnlyInternalHealthCheckServlet
(com.codahale.metrics.health.HealthCheckRegistry healthCheckRegistry) -
Method Summary
Methods inherited from class jakarta.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service, service
Methods inherited from class jakarta.servlet.GenericServlet
getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
-
Constructor Details
-
OnlyInternalHealthCheckServlet
public OnlyInternalHealthCheckServlet(com.codahale.metrics.health.HealthCheckRegistry healthCheckRegistry)
-
-
Method Details
-
init
public void init(jakarta.servlet.ServletConfig config) throws jakarta.servlet.ServletException - Specified by:
init
in interfacejakarta.servlet.Servlet
- Overrides:
init
in classjakarta.servlet.GenericServlet
- Throws:
jakarta.servlet.ServletException
-
destroy
public void destroy()- Specified by:
destroy
in interfacejakarta.servlet.Servlet
- Overrides:
destroy
in classjakarta.servlet.GenericServlet
-
doGet
protected void doGet(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp) - Overrides:
doGet
in classjakarta.servlet.http.HttpServlet
-