Class RequestParameterLocaleResolverImpl
java.lang.Object
ch.tocco.nice2.web.core.impl.servlet.locale.RequestParameterLocaleResolverImpl
- All Implemented Interfaces:
LocaleResolver
,RequestParameterLocaleResolver
@Component
@Order(100)
public class RequestParameterLocaleResolverImpl
extends Object
implements RequestParameterLocaleResolver
Locale resolver that reads from the request parameter (GET/POST).
- See Also:
-
Field Summary
Fields inherited from interface ch.tocco.nice2.textresources.spi.LocaleResolver
HIGH_PRIORITY, LOW_PRIORITY
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturn the current locales in order of preference.void
Gets called by RequestParameterLocaleFilter, you don't need that.
-
Constructor Details
-
RequestParameterLocaleResolverImpl
public RequestParameterLocaleResolverImpl(org.slf4j.Logger log)
-
-
Method Details
-
setLocale
Description copied from interface:RequestParameterLocaleResolver
Gets called by RequestParameterLocaleFilter, you don't need that.- Specified by:
setLocale
in interfaceRequestParameterLocaleResolver
-
getPreferredLocales
Description copied from interface:LocaleResolver
Return the current locales in order of preference.- Specified by:
getPreferredLocales
in interfaceLocaleResolver
- Returns:
- Unmodifiable, may be empty.
-