org.apache.accumulo.server.monitor.servlets
public abstract class BasicServlet extends javax.servlet.http.HttpServlet
Modifier and Type | Field and Description |
---|---|
protected static org.apache.log4j.Logger |
log |
Constructor and Description |
---|
BasicServlet() |
Modifier and Type | Method and Description |
---|---|
protected static void |
banner(StringBuilder sb,
String klass,
String text) |
static String |
currentPage(javax.servlet.http.HttpServletRequest req) |
static String |
decode(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 String |
encode(String s) |
protected String |
getBodyAttributes()
Allow the concrete servlet implementation to provide attributes on the body HTML tag, such as 'onload', which can be used to call Javascript methods on
page load.
|
static javax.servlet.http.Cookie |
getCookie(javax.servlet.http.HttpServletRequest req,
String name) |
protected abstract String |
getTitle(javax.servlet.http.HttpServletRequest req) |
protected void |
pageBody(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp,
StringBuilder sb) |
protected void |
pageEnd(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp,
StringBuilder sb) |
protected void |
pageStart(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp,
StringBuilder sb) |
static String |
sanitize(String xml) |
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service
protected abstract String getTitle(javax.servlet.http.HttpServletRequest req)
public void doGet(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) throws javax.servlet.ServletException, IOException
doGet
in class javax.servlet.http.HttpServlet
javax.servlet.ServletException
IOException
protected void doPost(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) throws javax.servlet.ServletException, IOException
doPost
in class javax.servlet.http.HttpServlet
javax.servlet.ServletException
IOException
public static final javax.servlet.http.Cookie getCookie(javax.servlet.http.HttpServletRequest req, String name)
protected void pageStart(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp, StringBuilder sb) throws Exception
Exception
protected void pageBody(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp, StringBuilder sb) throws Exception
Exception
protected void pageEnd(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp, StringBuilder sb) throws Exception
Exception
protected String getBodyAttributes()
public static String currentPage(javax.servlet.http.HttpServletRequest req)
protected static void banner(StringBuilder sb, String klass, String text)
Copyright © 2011-2015 The Apache Software Foundation. All Rights Reserved.