public interface I_CmsResourceInit
OpenCms.initResource(CmsObject, String, HttpServletRequest, HttpServletResponse).| 限定符和类型 | 方法和说明 |
|---|---|
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.
|
CmsResource initResource(CmsResource resource, CmsObject cms, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res) throws CmsResourceInitException, CmsSecurityException
Caution: reading parameters from the request, destroys special characters in all parameters, because the encoding for the request was not set yet.
resource - the requested filecms - the current CmsObjectreq - the current requestres - the current responseCmsResourceInitException - if other implementations of the interface should not be executedCmsSecurityException - if other implementations of the interface should not be executed,
and the security exception should be escalated