Package org.keycloak.locale
Class DefaultLocaleSelectorProvider
- java.lang.Object
-
- org.keycloak.locale.DefaultLocaleSelectorProvider
-
- All Implemented Interfaces:
LocaleSelectorProvider
,Provider
public class DefaultLocaleSelectorProvider extends Object implements LocaleSelectorProvider
-
-
Field Summary
-
Fields inherited from interface org.keycloak.locale.LocaleSelectorProvider
CLIENT_REQUEST_LOCALE, KC_LOCALE_PARAM, LOCALE_COOKIE, USER_REQUEST_LOCALE
-
-
Constructor Summary
Constructors Constructor Description DefaultLocaleSelectorProvider(KeycloakSession session)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
Locale
resolveLocale(RealmModel realm, UserModel user)
Resolve the locale which should be used for the request
-
-
-
Constructor Detail
-
DefaultLocaleSelectorProvider
public DefaultLocaleSelectorProvider(KeycloakSession session)
-
-
Method Detail
-
resolveLocale
public Locale resolveLocale(RealmModel realm, UserModel user)
Description copied from interface:LocaleSelectorProvider
Resolve the locale which should be used for the request- Specified by:
resolveLocale
in interfaceLocaleSelectorProvider
- Returns:
-
-