Class LocaleProperties
java.lang.Object
org.apereo.cas.configuration.model.core.web.LocaleProperties
- All Implemented Interfaces:
Serializable
@RequiresModule(name="cas-server-core-web",
automated=true)
public class LocaleProperties
extends Object
implements Serializable
Configuration properties class for locale.
- Since:
- 5.0.0
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionControl the properties of the cookie created to hold language changes.Default locale.Parameter name to use when switching locales.boolean
When set to true, locale resolution via request parameters and such is ignored and the locale default value is always enforced.setCookie
(LocaleCookieProperties cookie) Control the properties of the cookie created to hold language changes.setDefaultValue
(String defaultValue) Default locale.setForceDefaultLocale
(boolean forceDefaultLocale) When set to true, locale resolution via request parameters and such is ignored and the locale default value is always enforced.setParamName
(String paramName) Parameter name to use when switching locales.
-
Constructor Details
-
LocaleProperties
public LocaleProperties()
-
-
Method Details
-
getParamName
Parameter name to use when switching locales. -
getDefaultValue
Default locale. -
isForceDefaultLocale
public boolean isForceDefaultLocale()When set to true, locale resolution via request parameters and such is ignored and the locale default value is always enforced. -
getCookie
Control the properties of the cookie created to hold language changes. -
setParamName
Parameter name to use when switching locales.- Returns:
this
.
-
setDefaultValue
Default locale.- Returns:
this
.
-
setForceDefaultLocale
When set to true, locale resolution via request parameters and such is ignored and the locale default value is always enforced.- Returns:
this
.
-
setCookie
Control the properties of the cookie created to hold language changes.- Returns:
this
.
-