|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.opencms.file.CmsBackupResourceHandler
Resource init handler that loads backup versions of resources.
Field Summary | |
static java.lang.String |
ATTRIBUTE_NAME
Constant for the backup request attribute name. |
static java.lang.String |
BACKUP_HANDLER
The backup handler path. |
static java.lang.String |
PARAM_VERSIONID
Request parameter name for the version id. |
Constructor Summary | |
CmsBackupResourceHandler()
|
Method Summary | |
CmsResource |
initResource(CmsResource resource,
CmsObject cms,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
Possibility to modify or change the CmsFile with the CmsObject. |
static boolean |
isBackupRequest(javax.servlet.ServletRequest req)
Returns true if the given request is displaying a history backup version. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String ATTRIBUTE_NAME
public static final java.lang.String BACKUP_HANDLER
public static final java.lang.String PARAM_VERSIONID
Constructor Detail |
public CmsBackupResourceHandler()
Method Detail |
public static boolean isBackupRequest(javax.servlet.ServletRequest req)
true
if the given request is displaying a history backup version.
req
- the request to check
true
if the given request is displaying a history backup versionpublic CmsResource initResource(CmsResource resource, CmsObject cms, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res) throws CmsResourceInitException
I_CmsResourceInit
initResource
in interface I_CmsResourceInit
resource
- the requested filecms
- the current CmsObjectreq
- the current requestres
- the current response
CmsResourceInitException
I_CmsResourceInit.initResource(org.opencms.file.CmsResource, org.opencms.file.CmsObject, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |