org.apache.accumulo.server.monitor.servlets
Class BasicServlet
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
org.apache.accumulo.server.monitor.servlets.BasicServlet
- All Implemented Interfaces:
- java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig
- Direct Known Subclasses:
- DefaultServlet, GcStatusServlet, ListType, LoggersServlet, LogServlet, MasterServlet, OperationServlet, ProblemServlet, ShowTrace, Summary, TablesServlet, TServersServlet, XMLServlet
public abstract class BasicServlet
- extends javax.servlet.http.HttpServlet
- See Also:
- Serialized Form
Field Summary |
protected org.apache.log4j.Logger |
log
|
Method Summary |
protected static void |
banner(java.lang.StringBuilder sb,
java.lang.String klass,
java.lang.String text)
|
static java.lang.String |
currentPage(javax.servlet.http.HttpServletRequest req)
|
static java.lang.String |
decode(java.lang.String s)
|
void |
doGet(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
|
protected void |
doPost(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
|
static java.lang.String |
encode(java.lang.String s)
|
static javax.servlet.http.Cookie |
getCookie(javax.servlet.http.HttpServletRequest req,
java.lang.String name)
|
protected abstract java.lang.String |
getTitle(javax.servlet.http.HttpServletRequest req)
|
protected void |
pageBody(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp,
java.lang.StringBuilder sb)
|
protected void |
pageEnd(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp,
java.lang.StringBuilder sb)
|
protected void |
pageStart(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp,
java.lang.StringBuilder sb)
|
static java.lang.String |
sanitize(java.lang.String xml)
|
Methods inherited from class javax.servlet.http.HttpServlet |
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service |
Methods inherited from class javax.servlet.GenericServlet |
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
log
protected final org.apache.log4j.Logger log
BasicServlet
public BasicServlet()
getTitle
protected abstract java.lang.String getTitle(javax.servlet.http.HttpServletRequest req)
doGet
public void doGet(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
throws javax.servlet.ServletException,
java.io.IOException
- Overrides:
doGet
in class javax.servlet.http.HttpServlet
- Throws:
javax.servlet.ServletException
java.io.IOException
doPost
protected final void doPost(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
throws javax.servlet.ServletException,
java.io.IOException
- Overrides:
doPost
in class javax.servlet.http.HttpServlet
- Throws:
javax.servlet.ServletException
java.io.IOException
getCookie
public static final javax.servlet.http.Cookie getCookie(javax.servlet.http.HttpServletRequest req,
java.lang.String name)
pageStart
protected void pageStart(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp,
java.lang.StringBuilder sb)
throws java.lang.Exception
- Throws:
java.lang.Exception
pageBody
protected void pageBody(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp,
java.lang.StringBuilder sb)
throws java.lang.Exception
- Throws:
java.lang.Exception
pageEnd
protected void pageEnd(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp,
java.lang.StringBuilder sb)
throws java.lang.Exception
- Throws:
java.lang.Exception
encode
public static java.lang.String encode(java.lang.String s)
decode
public static java.lang.String decode(java.lang.String s)
sanitize
public static java.lang.String sanitize(java.lang.String xml)
currentPage
public static java.lang.String currentPage(javax.servlet.http.HttpServletRequest req)
banner
protected static void banner(java.lang.StringBuilder sb,
java.lang.String klass,
java.lang.String text)
Copyright © 2012 The Apache Software Foundation. All Rights Reserved.