Class NoBrowserLocalePolicyService
java.lang.Object
org.exoplatform.portal.application.localization.DefaultLocalePolicyService
org.exoplatform.portal.application.localization.NoBrowserLocalePolicyService
- All Implemented Interfaces:
org.exoplatform.services.resources.LocalePolicy
This implementation of
LocalePolicy disregards client browser language preference.
Localization will therefore not be affected by different OS or browser language settings.-
Constructor Summary
ConstructorsConstructorDescriptionNoBrowserLocalePolicyService(org.exoplatform.services.resources.LocaleConfigService localeConfigService, org.exoplatform.container.xml.InitParams params) -
Method Summary
Modifier and TypeMethodDescriptionprotected LocalegetLocaleConfigFromBrowser(org.exoplatform.services.resources.LocaleContextInfo context) Override super method with no-op.Methods inherited from class org.exoplatform.portal.application.localization.DefaultLocalePolicyService
determineLocale, getLocaleConfigForAnonymous, getLocaleConfigForRegistered, getLocaleConfigFromCookie, getLocaleConfigFromSession
-
Constructor Details
-
NoBrowserLocalePolicyService
public NoBrowserLocalePolicyService(org.exoplatform.services.resources.LocaleConfigService localeConfigService, org.exoplatform.container.xml.InitParams params)
-
-
Method Details
-
getLocaleConfigFromBrowser
protected Locale getLocaleConfigFromBrowser(org.exoplatform.services.resources.LocaleContextInfo context) Override super method with no-op.- Overrides:
getLocaleConfigFromBrowserin classDefaultLocalePolicyService- Parameters:
context- locale context info available to implementations in order to determine appropriate Locale- Returns:
- null
-