Package org.broadleafcommerce.common.web
Class BroadleafCookieLocaleResolver
java.lang.Object
org.springframework.web.servlet.i18n.AbstractLocaleResolver
org.springframework.web.servlet.i18n.AbstractLocaleContextResolver
org.springframework.web.servlet.i18n.CookieLocaleResolver
org.broadleafcommerce.common.web.BroadleafCookieLocaleResolver
- All Implemented Interfaces:
org.springframework.web.servlet.LocaleContextResolver,org.springframework.web.servlet.LocaleResolver
public class BroadleafCookieLocaleResolver
extends org.springframework.web.servlet.i18n.CookieLocaleResolver
Specific Spring component to override the default behavior of
CookieLocaleResolver so that the default Broadleaf
Locale looked up in the database is used. This should be hooked up in applicationContext-servlet.xml in place of Spring's
CookieResolver.- Author:
- Phillip Verheyden (phillipuniverse)
-
Field Summary
Fields inherited from class org.springframework.web.servlet.i18n.CookieLocaleResolver
DEFAULT_COOKIE_NAME, LOCALE_REQUEST_ATTRIBUTE_NAME, TIME_ZONE_REQUEST_ATTRIBUTE_NAME -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected LocaledetermineDefaultLocale(jakarta.servlet.http.HttpServletRequest request) Methods inherited from class org.springframework.web.servlet.i18n.CookieLocaleResolver
determineDefaultTimeZone, isLanguageTagCompliant, isRejectInvalidCookies, parseLocaleValue, resolveLocale, resolveLocaleContext, setCookieDomain, setCookieHttpOnly, setCookieMaxAge, setCookieMaxAge, setCookieName, setCookiePath, setCookieSameSite, setCookieSecure, setDefaultLocaleFunction, setDefaultTimeZoneFunction, setLanguageTagCompliant, setLocaleContext, setRejectInvalidCookies, toLocaleValueMethods inherited from class org.springframework.web.servlet.i18n.AbstractLocaleContextResolver
getDefaultTimeZone, setDefaultTimeZoneMethods inherited from class org.springframework.web.servlet.i18n.AbstractLocaleResolver
getDefaultLocale, setDefaultLocaleMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.web.servlet.LocaleContextResolver
setLocale
-
Constructor Details
-
BroadleafCookieLocaleResolver
public BroadleafCookieLocaleResolver()
-
-
Method Details
-
determineDefaultLocale
- Overrides:
determineDefaultLocalein classorg.springframework.web.servlet.i18n.CookieLocaleResolver
-