org.opencms.main
Interface I_CmsResourceInit

All Known Implementing Classes:
CmsBackupResourceHandler

public interface I_CmsResourceInit

This interface checks the requested resource from the OpenCms request context and returns it to the calling method, which will usually be OpenCms.initResource(cms).

Since:
6.0.0
Version:
$Revision: 1.9 $
Author:
Andreas Zahner

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.
 

Method Detail

initResource

public CmsResource initResource(CmsResource resource,
                                CmsObject cms,
                                javax.servlet.http.HttpServletRequest req,
                                javax.servlet.http.HttpServletResponse res)
                         throws CmsResourceInitException
Possibility to modify or change the CmsFile with the CmsObject.

Parameters:
resource - the requested file
cms - the current CmsObject
req - the current request
res - the current response
Returns:
a resource in the OpenCms VFS
Throws:
CmsResourceInitException - if other implementations of the interface should not be executed