|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--javax.servlet.GenericServlet | +--javax.servlet.http.HttpServlet | +--com.mkdoc.servlet.AbstractMKDocServlet
An abstract implementation of servlet utilities.
Constructor Summary | |
protected |
AbstractMKDocServlet()
Protected default constructor. |
Method Summary | |
static java.lang.String |
filter(java.lang.String input)
Filter a string for potentially malicious markup. |
static ApplicationContext |
getApplicationContext(javax.servlet.ServletContext context)
Get an application context for a servlet. |
static java.lang.String |
getFirstParam(javax.servlet.http.HttpServletRequest request,
java.lang.String name)
Get the first parameter by a given name. |
Methods inherited from class javax.servlet.http.HttpServlet |
doDelete, doGet, 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 |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
protected AbstractMKDocServlet()
Method Detail |
public static final java.lang.String getFirstParam(javax.servlet.http.HttpServletRequest request, java.lang.String name)
request
- The HTTP servlet request.name
- The name of the parameter value to get.
null
if the parameter does not exist or is
blank.public static final java.lang.String filter(java.lang.String input)
input
- A servlet parameter to filter.
public static final ApplicationContext getApplicationContext(javax.servlet.ServletContext context)
context
- The servlet context for an application.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |