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
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddoGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) private org.apache.hadoop.conf.ConfigurationReturn the Configuration of the daemon hosting this servlet.(package private) static org.apache.hadoop.conf.Configurationmask(org.apache.hadoop.conf.Configuration conf) (package private) static voidwriteResponse(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, serviceMethods 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:
doGetin classjavax.servlet.http.HttpServlet- Throws:
javax.servlet.ServletExceptionIOException
-
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
-