Package org.opencms.i18n
Class CmsDefaultLocaleHandler
java.lang.Object
org.opencms.i18n.CmsDefaultLocaleHandler
- All Implemented Interfaces:
- I_CmsLocaleHandler
- Direct Known Subclasses:
- CmsSingleTreeLocaleHandler
Default implementation of the locale handler.
- Since:
- 6.0.0
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptiongetI18nInfo(javax.servlet.http.HttpServletRequest req, CmsUser user, CmsProject project, String resourceName) Returns the i18n information to use in the request context.voidinitHandler(CmsObject cms) Will be called during system startup.
- 
Constructor Details- 
CmsDefaultLocaleHandlerpublic CmsDefaultLocaleHandler()Constructor, no action is required.
 
- 
- 
Method Details- 
getI18nInfopublic CmsI18nInfo getI18nInfo(javax.servlet.http.HttpServletRequest req, CmsUser user, CmsProject project, String resourceName) Description copied from interface:I_CmsLocaleHandlerReturns the i18n information to use in the request context.- Specified by:
- getI18nInfoin interface- I_CmsLocaleHandler
- Parameters:
- req- the current http request
- user- the current user
- project- the current project
- resourceName- the URI of the requested resource (with full site root added)
- Returns:
- the i18n information to use for the given request context
- See Also:
 
- 
initHandlerDescription copied from interface:I_CmsLocaleHandlerWill be called during system startup.- Specified by:
- initHandlerin interface- I_CmsLocaleHandler
- Parameters:
- cms- an initialized cms permission context for VFS access
- See Also:
 
 
-