Package io.dropwizard.metrics.servlets
Class AdminServlet
java.lang.Object
jakarta.servlet.GenericServlet
jakarta.servlet.http.HttpServlet
io.dropwizard.metrics.servlets.AdminServlet
- All Implemented Interfaces:
jakarta.servlet.Servlet
,jakarta.servlet.ServletConfig
,Serializable
public class AdminServlet
extends jakarta.servlet.http.HttpServlet
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
Fields inherited from class jakarta.servlet.http.HttpServlet
LEGACY_DO_HEAD
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
doGet
(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp) void
init
(jakarta.servlet.ServletConfig config) protected void
service
(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp) Methods inherited from class jakarta.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service
Methods inherited from class jakarta.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
-
Field Details
-
DEFAULT_HEALTHCHECK_URI
- See Also:
-
DEFAULT_METRICS_URI
- See Also:
-
DEFAULT_PING_URI
- See Also:
-
DEFAULT_THREADS_URI
- See Also:
-
DEFAULT_CPU_PROFILE_URI
- See Also:
-
METRICS_ENABLED_PARAM_KEY
- See Also:
-
METRICS_URI_PARAM_KEY
- See Also:
-
PING_ENABLED_PARAM_KEY
- See Also:
-
PING_URI_PARAM_KEY
- See Also:
-
THREADS_ENABLED_PARAM_KEY
- See Also:
-
THREADS_URI_PARAM_KEY
- See Also:
-
HEALTHCHECK_ENABLED_PARAM_KEY
- See Also:
-
HEALTHCHECK_URI_PARAM_KEY
- See Also:
-
SERVICE_NAME_PARAM_KEY
- See Also:
-
CPU_PROFILE_ENABLED_PARAM_KEY
- See Also:
-
CPU_PROFILE_URI_PARAM_KEY
- See Also:
-
-
Constructor Details
-
AdminServlet
public AdminServlet()
-
-
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.http.HttpServlet
- Throws:
jakarta.servlet.ServletException
-
doGet
protected void doGet(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp) throws jakarta.servlet.ServletException, IOException - Overrides:
doGet
in classjakarta.servlet.http.HttpServlet
- Throws:
jakarta.servlet.ServletException
IOException
-
service
protected void service(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp) throws jakarta.servlet.ServletException, IOException - Overrides:
service
in classjakarta.servlet.http.HttpServlet
- Throws:
jakarta.servlet.ServletException
IOException
-