Package org.ametys.core.i18n
Class LocaleInputModule
java.lang.Object
org.ametys.core.i18n.LocaleInputModule
- All Implemented Interfaces:
DeferredServiceable,Component,ThreadSafe,InputModule
public class LocaleInputModule
extends Object
implements InputModule, ThreadSafe, DeferredServiceable
Input module for getting informations about currently used locale.
The search algorithm is the same as
3 variables are available : "locale", "country" and "language"
The search algorithm is the same as
I18nUtils.3 variables are available : "locale", "country" and "language"
-
Field Summary
FieldsFields inherited from interface org.apache.cocoon.components.modules.input.InputModule
ROLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddeferredService(ServiceManager manager) Pass theServiceManagerused to access other components.getAttribute(String name, Configuration modeConf, Map objectModel) getAttributeNames(Configuration modeConf, Map objectModel) Object[]getAttributeValues(String name, Configuration modeConf, Map objectModel)
-
Field Details
-
_localeHelper
The current user provider
-
-
Constructor Details
-
LocaleInputModule
public LocaleInputModule()
-
-
Method Details
-
deferredService
Description copied from interface:DeferredServiceablePass theServiceManagerused to access other components.- Specified by:
deferredServicein interfaceDeferredServiceable- Parameters:
manager- TheServiceManagerwhich thisDeferredServiceableuses. Must not benull.- Throws:
ServiceException- if an error occurs
-
getAttribute
public Object getAttribute(String name, Configuration modeConf, Map objectModel) throws ConfigurationException - Specified by:
getAttributein interfaceInputModule- Throws:
ConfigurationException
-
getAttributeNames
public Iterator getAttributeNames(Configuration modeConf, Map objectModel) throws ConfigurationException - Specified by:
getAttributeNamesin interfaceInputModule- Throws:
ConfigurationException
-
getAttributeValues
public Object[] getAttributeValues(String name, Configuration modeConf, Map objectModel) throws ConfigurationException - Specified by:
getAttributeValuesin interfaceInputModule- Throws:
ConfigurationException
-