public abstract class MethodBase extends Object implements org.bedework.util.logging.Logged
| Modifier and Type | Class and Description |
|---|---|
static class |
MethodBase.MethodInfo
Allow servlet to create method.
|
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
dumpContent |
protected SynchEngine |
syncher |
| Constructor and Description |
|---|
MethodBase() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addHeaders(javax.servlet.http.HttpServletResponse resp) |
abstract void |
doMethod(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp) |
static List<String> |
fixPath(String path)
Return a path, broken into its elements, after "." and ".." are removed.
|
protected String |
formatHTTPDate(Timestamp val) |
org.bedework.util.logging.BwLogger |
getLogger() |
List<String> |
getResourceUri(javax.servlet.http.HttpServletRequest req)
Get the decoded and fixed resource URI.
|
SynchEngine |
getSyncher()
Get syncher
|
abstract void |
init()
Called at each request
|
void |
init(SynchEngine syncher,
boolean dumpContent)
Called at each request
|
protected Document |
parseContent(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
Parse the request body, and return the DOM representation.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaudit, debug, debug, enableAuditLogger, enableErrorLogger, enableMetricsLogger, error, error, error, info, isAuditLoggerEnabled, isErrorLoggerEnabled, isMetricsDebugEnabled, isMetricsLoggerEnabled, metrics, setLoggerClass, setLoggerClass, trace, trace, warnprotected boolean dumpContent
protected SynchEngine syncher
public abstract void init()
throws SynchException
SynchException - on fatal errorpublic abstract void doMethod(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
throws SynchException
req - http requestresp - http responseSynchException - on fatal errorpublic void init(SynchEngine syncher, boolean dumpContent) throws SynchException
syncher - the synch enginedumpContent - true for debug dums of contentSynchException - on init failurepublic SynchEngine getSyncher()
public List<String> getResourceUri(javax.servlet.http.HttpServletRequest req)
req - Servlet request objectpublic static List<String> fixPath(String path)
path - String path to be fixedprotected void addHeaders(javax.servlet.http.HttpServletResponse resp)
throws SynchException
SynchExceptionprotected Document parseContent(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) throws SynchException
req - Servlet request objectresp - Servlet response object for bad statusSynchException - Some error occurred.public org.bedework.util.logging.BwLogger getLogger()
getLogger in interface org.bedework.util.logging.LoggedCopyright © 2019 Bedework. All rights reserved.