Class ConfServlet
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
org.apache.hadoop.hbase.http.conf.ConfServlet
- All Implemented Interfaces:
Serializable
,javax.servlet.Servlet
,javax.servlet.ServletConfig
A servlet to print out the running configuration data.
- See Also:
-
Nested Class Summary
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
doGet
(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) private org.apache.hadoop.conf.Configuration
Return the Configuration of the daemon hosting this servlet.(package private) static org.apache.hadoop.conf.Configuration
mask
(org.apache.hadoop.conf.Configuration conf) (package private) static void
writeResponse
(org.apache.hadoop.conf.Configuration conf, Writer out, String format) Guts of the servlet - extracted for easy testing.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:
-
FORMAT_JSON
- See Also:
-
FORMAT_XML
- See Also:
-
FORMAT_PARAM
- See Also:
-
MASK_PROPERTIES
-
MASKED
- See Also:
-
-
Constructor Details
-
ConfServlet
public ConfServlet()
-
-
Method Details
-
getConfFromContext
Return the Configuration of the daemon hosting this servlet. This is populated when the HttpServer starts. -
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
-
writeResponse
static void writeResponse(org.apache.hadoop.conf.Configuration conf, Writer out, String format) throws IOException, ConfServlet.BadFormatException Guts of the servlet - extracted for easy testing. -
mask
-