Class StoreSessionLocaleResolver

java.lang.Object
de.hybris.platform.yacceleratorstorefront.web.i18n.StoreSessionLocaleResolver
All Implemented Interfaces:
org.springframework.web.servlet.LocaleResolver

public class StoreSessionLocaleResolver extends Object implements org.springframework.web.servlet.LocaleResolver
Implementation of SessionLocaleResolver which falls back to the locale defined by the current site
  • Field Details

    • LOCALE_REQUEST_ATTRIBUTE_NAME

      public static final String LOCALE_REQUEST_ATTRIBUTE_NAME
  • Constructor Details

    • StoreSessionLocaleResolver

      public StoreSessionLocaleResolver()
  • Method Details

    • getI18NService

      protected I18NService getI18NService()
    • setI18NService

      public void setI18NService(I18NService i18NService)
    • resolveLocale

      public Locale resolveLocale(javax.servlet.http.HttpServletRequest request)
      Specified by:
      resolveLocale in interface org.springframework.web.servlet.LocaleResolver
    • setLocale

      public void setLocale(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, Locale locale)
      Specified by:
      setLocale in interface org.springframework.web.servlet.LocaleResolver
    • getHybrisSessionLocale

      protected Locale getHybrisSessionLocale()