Java org.springframework.web.servlet.i18n CookieLocaleResolver fields, constructors, methods, implement or subclass

Example usage for Java org.springframework.web.servlet.i18n CookieLocaleResolver fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.springframework.web.servlet.i18n CookieLocaleResolver.

The text is from its open source code.

Subclass

org.springframework.web.servlet.i18n.CookieLocaleResolver has subclasses.
Click this link to see all its subclasses.

Field

StringLOCALE_REQUEST_ATTRIBUTE_NAME
The name of the request attribute that holds the Locale .

Constructor

CookieLocaleResolver()
Create a new instance of the CookieLocaleResolver class using the #DEFAULT_COOKIE_NAME default cookie name .

Method

StringgetCookieName()
Return the given name for cookies created by this generator.
voidsetCookieMaxAge(@Nullable Integer cookieMaxAge)
Use the given maximum age (in seconds) for cookies created by this generator.
voidsetCookieName(@Nullable String cookieName)
Use the given name for cookies created by this generator.
voidsetCookiePath(String cookiePath)
Use the given path for cookies created by this generator.
voidsetDefaultLocale(@Nullable Locale defaultLocale)
Set a fixed locale that this resolver will return if no cookie found.