Example usage for Java org.springframework.web.servlet.i18n CookieLocaleResolver fields, constructors, methods, implement or subclass
The text is from its open source code.
String | LOCALE_REQUEST_ATTRIBUTE_NAME The name of the request attribute that holds the Locale . |
CookieLocaleResolver() Create a new instance of the CookieLocaleResolver class using the #DEFAULT_COOKIE_NAME default cookie name . |
String | getCookieName() Return the given name for cookies created by this generator. |
void | setCookieMaxAge(@Nullable Integer cookieMaxAge) Use the given maximum age (in seconds) for cookies created by this generator. |
void | setCookieName(@Nullable String cookieName) Use the given name for cookies created by this generator. |
void | setCookiePath(String cookiePath) Use the given path for cookies created by this generator. |
void | setDefaultLocale(@Nullable Locale defaultLocale) Set a fixed locale that this resolver will return if no cookie found. |