Package org.gluu.oxauth.i18n
Class LanguageBean
- java.lang.Object
-
- org.gluu.oxauth.i18n.LanguageBean
-
- All Implemented Interfaces:
java.io.Serializable
@Named("language") @ApplicationScoped public class LanguageBean extends java.lang.Object implements java.io.Serializable
- Version:
- August 9, 2017
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description LanguageBean()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description java.util.Locale
getLocale()
java.lang.String
getLocaleCode()
Deprecated.java.lang.String
getMessage(java.lang.String key)
java.util.List<java.util.Locale>
getSupportedLocales()
void
initSupportedLocales(AppConfiguration appConfiguration)
void
setLocale(java.util.Locale requestedLocale)
void
setLocaleCode(java.lang.String requestedLocaleCode)
-
-
-
Method Detail
-
initSupportedLocales
public void initSupportedLocales(@Observes @ConfigurationUpdate AppConfiguration appConfiguration)
-
getLocaleCode
@Deprecated public java.lang.String getLocaleCode()
Deprecated.
-
getLocale
public java.util.Locale getLocale()
-
setLocaleCode
public void setLocaleCode(java.lang.String requestedLocaleCode)
-
setLocale
public void setLocale(java.util.Locale requestedLocale)
-
getSupportedLocales
public java.util.List<java.util.Locale> getSupportedLocales()
-
getMessage
public java.lang.String getMessage(java.lang.String key)
-
-