@InterfaceAudience.LimitedPrivate(value="HBase") @InterfaceStability.Unstable public class ConfServlet extends javax.servlet.http.HttpServlet
Modifier and Type | Class and Description |
---|---|
static class |
ConfServlet.BadFormatException |
Modifier and Type | Field and Description |
---|---|
private static String |
FORMAT_JSON |
private static String |
FORMAT_PARAM |
private static String |
FORMAT_XML |
private static long |
serialVersionUID |
Constructor and Description |
---|
ConfServlet() |
Modifier and Type | Method and Description |
---|---|
void |
doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
private org.apache.hadoop.conf.Configuration |
getConfFromContext()
Return the Configuration of the daemon hosting this servlet.
|
(package private) static void |
writeResponse(org.apache.hadoop.conf.Configuration conf,
Writer out,
String format)
Guts of the servlet - extracted for easy testing.
|
doDelete, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service, service
private static final long serialVersionUID
private static final String FORMAT_JSON
private static final String FORMAT_XML
private static final String FORMAT_PARAM
public ConfServlet()
private org.apache.hadoop.conf.Configuration getConfFromContext()
public void doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, IOException
doGet
in class javax.servlet.http.HttpServlet
javax.servlet.ServletException
IOException
static void writeResponse(org.apache.hadoop.conf.Configuration conf, Writer out, String format) throws IOException, ConfServlet.BadFormatException
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.