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

    Constructors
    Constructor
    Description
    OnlyInternalHealthCheckServlet(com.codahale.metrics.health.HealthCheckRegistry healthCheckRegistry)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    protected void
    doGet(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp)
     
    void
    init(jakarta.servlet.ServletConfig config)
     

    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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 interface jakarta.servlet.Servlet
      Overrides:
      init in class jakarta.servlet.GenericServlet
      Throws:
      jakarta.servlet.ServletException
    • destroy

      public void destroy()
      Specified by:
      destroy in interface jakarta.servlet.Servlet
      Overrides:
      destroy in class jakarta.servlet.GenericServlet
    • doGet

      protected void doGet(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp)
      Overrides:
      doGet in class jakarta.servlet.http.HttpServlet