Package io.dropwizard.metrics5.servlets
Class HealthCheckServlet
- java.lang.Object
-
- jakarta.servlet.GenericServlet
-
- jakarta.servlet.http.HttpServlet
-
- io.dropwizard.metrics5.servlets.HealthCheckServlet
-
- All Implemented Interfaces:
jakarta.servlet.Servlet,jakarta.servlet.ServletConfig,Serializable
public class HealthCheckServlet extends jakarta.servlet.http.HttpServlet- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classHealthCheckServlet.ContextListener
-
Field Summary
Fields Modifier and Type Field Description static StringHEALTH_CHECK_EXECUTORstatic StringHEALTH_CHECK_FILTERstatic StringHEALTH_CHECK_HTTP_STATUS_INDICATORstatic StringHEALTH_CHECK_MAPPERstatic StringHEALTH_CHECK_REGISTRY
-
Constructor Summary
Constructors Constructor Description HealthCheckServlet()HealthCheckServlet(io.dropwizard.metrics5.health.HealthCheckRegistry registry)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddestroy()protected voiddoGet(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp)voidinit(jakarta.servlet.ServletConfig config)-
Methods inherited from class jakarta.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service, service
-
-
-
-
Field Detail
-
HEALTH_CHECK_REGISTRY
public static final String HEALTH_CHECK_REGISTRY
-
HEALTH_CHECK_EXECUTOR
public static final String HEALTH_CHECK_EXECUTOR
-
HEALTH_CHECK_FILTER
public static final String HEALTH_CHECK_FILTER
-
HEALTH_CHECK_MAPPER
public static final String HEALTH_CHECK_MAPPER
-
HEALTH_CHECK_HTTP_STATUS_INDICATOR
public static final String HEALTH_CHECK_HTTP_STATUS_INDICATOR
-
-
Method Detail
-
init
public void init(jakarta.servlet.ServletConfig config) throws jakarta.servlet.ServletException- Specified by:
initin interfacejakarta.servlet.Servlet- Overrides:
initin classjakarta.servlet.GenericServlet- Throws:
jakarta.servlet.ServletException
-
destroy
public void destroy()
- Specified by:
destroyin interfacejakarta.servlet.Servlet- Overrides:
destroyin classjakarta.servlet.GenericServlet
-
doGet
protected void doGet(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp) throws jakarta.servlet.ServletException, IOException- Overrides:
doGetin classjakarta.servlet.http.HttpServlet- Throws:
jakarta.servlet.ServletExceptionIOException
-
-