public class MonitorServlet extends com.codahale.metrics.servlets.AdminServlet
The token is defined in a Java property
obtained from 1) system properties or from 2) a properties file specified by
servlet context parameter
.
Modifier and Type | Field and Description |
---|---|
static String |
API_TOKEN_PROPERTY_NAME
The property name for the API access token.
|
static int |
MIN_TOKEN_LENGTH
The min accepted web access token character length.
|
protected BasicAccessTokenValidator |
tokenValidator
The access token validator.
|
Constructor and Description |
---|
MonitorServlet() |
Modifier and Type | Method and Description |
---|---|
protected void |
doGet(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp) |
void |
init(javax.servlet.ServletConfig config) |
protected void |
service(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp) |
doDelete, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service
public static final String API_TOKEN_PROPERTY_NAME
public static final int MIN_TOKEN_LENGTH
protected BasicAccessTokenValidator tokenValidator
public MonitorServlet()
public void init(javax.servlet.ServletConfig config) throws javax.servlet.ServletException
init
in interface javax.servlet.Servlet
init
in class com.codahale.metrics.servlets.AdminServlet
javax.servlet.ServletException
protected void doGet(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) throws javax.servlet.ServletException, IOException
doGet
in class com.codahale.metrics.servlets.AdminServlet
javax.servlet.ServletException
IOException
protected void service(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) throws javax.servlet.ServletException, IOException
service
in class com.codahale.metrics.servlets.AdminServlet
javax.servlet.ServletException
IOException
Copyright © 2016 Connect2id. All Rights Reserved.