public interface I_CmsLocaleHandler
By implementing this interface, and configuring OpenCms accordingly, the behaviour for the m_locale selection can be fine-tuned to the exact need of the OpenCms installation.
限定符和类型 | 方法和说明 |
---|---|
CmsI18nInfo |
getI18nInfo(javax.servlet.http.HttpServletRequest req,
CmsUser user,
CmsProject project,
java.lang.String resource)
Returns the i18n information to use in the request context.
|
void |
initHandler(CmsObject cms)
Will be called during system startup.
|
CmsI18nInfo getI18nInfo(javax.servlet.http.HttpServletRequest req, CmsUser user, CmsProject project, java.lang.String resource)
req
- the current http requestuser
- the current userproject
- the current projectresource
- the URI of the requested resource (with full site root added)void initHandler(CmsObject cms)
cms
- an initialized cms permission context for VFS access