| java.lang.Object org.enhydra.dm.api.handler.AbstractHandler
All known Subclasses: org.enhydra.dm.handler.DefaultLockHandler, org.enhydra.dm.handler.DefaultMkcolHandler, org.enhydra.dm.handler.DefaultCheckoutHandler, org.enhydra.dm.handler.DefaultOptionsHandler, org.enhydra.dm.handler.DefaultGetHandler, org.enhydra.dm.handler.DefaultPutHandler, org.enhydra.dm.handler.DefaultPostHandler, org.enhydra.dm.handler.DefaultPropfindHandler, org.enhydra.dm.handler.DefaultReportHandler, org.enhydra.dm.handler.DefaultVersionHandler, org.enhydra.dm.handler.DefaultHeadHandler, org.enhydra.dm.handler.DefaultProppatchHandler, org.enhydra.dm.handler.DefaultCheckinHandler, org.enhydra.dm.handler.DefaultDeleteHandler, org.enhydra.dm.handler.DefaultUncheckoutHandler, org.enhydra.dm.handler.DefaultUnlockHandler, org.enhydra.dm.handler.DefaultCopyHandler, org.enhydra.dm.handler.DefaultMoveHandler,
AbstractHandler | abstract public class AbstractHandler implements MethodHandler(Code) | | An abstract implementation of the MethodHandler interface. This class
serves as a convenient basis for building method handlers. In addition to providing
basic init and destroy methods, several useful utility
methods are supplied.
author: Slobodan Vujasinovic |
DEFAULT_LOCK_TIMEOUT | final public static String DEFAULT_LOCK_TIMEOUT(Code) | | |
REQUEST_URI_CHARSET | final public static String REQUEST_URI_CHARSET(Code) | | |
SESSION_ATT_LOCKED | final public static String SESSION_ATT_LOCKED(Code) | | |
checkConditionalRequest | protected int checkConditionalRequest(HttpServletRequest request, Document document) throws IOException(Code) | | Checks if a conditional request should apply. If the client specifies one or more
conditional cache headers ("If-Match ", "If-None-Match ", "If-Modified-Since ",
or "If-Unmodified-Since" -- "If-Range " is not
currently supported), this method will indicate whether the
request should be processed.
Parameters: request - The servlet request whose conditional cache headerswill be examined. Parameters: file - The resource that is being examined. An HTTP status code indicating the result. This will be one of:200 (HttpServletResponse.SC_OK ) --if the request should be serviced normally304 (HttpServletResponse.SC_NOT_MODIFIED )-- if the resource has not been modified400 (HttpServletResponse.SC_BAD_REQUEST ) --if the client has submitted a malformed conditional header412 (HttpServletResponse.SC_PRECONDITION_FAILED ) --if no matching entity was found, or the request should not proceedbased on the current lock status
throws: IOException - If an error occurs while examining the resource. |
destroy | public void destroy()(Code) | | Destroy method
|
getLockRequestTimeout | public String getLockRequestTimeout()(Code) | | |
getServletConfig | protected ServletConfig getServletConfig()(Code) | | Returns the ServletConfig object that was provided to the
init method.
A ServletConfig object containing the servlet's configurationand initialization parameters. |
init | public void init(ServletConfig config, DocumentManager documentManager, DocumentStore documentStore, DesEncription desEncription, Log logger) throws ServletException(Code) | | Initializes the method handler. This implementation stores the provided
ServletConfig object and makes it available via the
getServletConfig method. Subclasses overriding this method should
start by invoking
super.init(config);
Parameters: config - a ServletConfig object containing the servlet'sconfiguration and initialization parameters. throws: ServletException - If an error occurs during initialization. |
setLogger | public void setLogger(Log logger)(Code) | | Parameters: logger - |
|
|