Package org.apache.hadoop.hbase.http.log
Class LogLevel.Servlet
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
org.apache.hadoop.hbase.http.log.LogLevel.Servlet
- All Implemented Interfaces:
Serializable
,javax.servlet.Servlet
,javax.servlet.ServletConfig
- Enclosing class:
- LogLevel
A servlet implementation
- See Also:
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
doGet
(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) private boolean
isLogLevelChangeAllowed
(String logger, String[] readOnlyLogLevels) private static void
process
(org.slf4j.Logger logger, String levelName, PrintWriter out) private void
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service, service
Methods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log
-
Field Details
-
serialVersionUID
- See Also:
-
FORMS
- See Also:
-
-
Constructor Details
-
Servlet
public Servlet()
-
-
Method Details
-
doGet
public void doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, IOException - Overrides:
doGet
in classjavax.servlet.http.HttpServlet
- Throws:
javax.servlet.ServletException
IOException
-
isLogLevelChangeAllowed
-
sendError
private void sendError(javax.servlet.http.HttpServletResponse response, int code, String message) throws IOException - Throws:
IOException
-
process
-