Class CustomLocaleResolver

java.lang.Object
org.springframework.web.servlet.i18n.AcceptHeaderLocaleResolver
com.github.damianwajser.exceptions.configuration.CustomLocaleResolver
All Implemented Interfaces:
org.springframework.web.servlet.config.annotation.WebMvcConfigurer, org.springframework.web.servlet.LocaleResolver

@Configuration
public class CustomLocaleResolver
extends org.springframework.web.servlet.i18n.AcceptHeaderLocaleResolver
implements org.springframework.web.servlet.config.annotation.WebMvcConfigurer
  • Constructor Summary

    Constructors 
    Constructor Description
    CustomLocaleResolver()  
  • Method Summary

    Modifier and Type Method Description
    Locale resolveLocale​(javax.servlet.http.HttpServletRequest request)  

    Methods inherited from class org.springframework.web.servlet.i18n.AcceptHeaderLocaleResolver

    getDefaultLocale, getSupportedLocales, setDefaultLocale, setLocale, setSupportedLocales

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.springframework.web.servlet.config.annotation.WebMvcConfigurer

    addArgumentResolvers, addCorsMappings, addFormatters, addInterceptors, addResourceHandlers, addReturnValueHandlers, addViewControllers, configureAsyncSupport, configureContentNegotiation, configureDefaultServletHandling, configureHandlerExceptionResolvers, configureMessageConverters, configurePathMatch, configureViewResolvers, extendHandlerExceptionResolvers, extendMessageConverters, getMessageCodesResolver, getValidator
  • Constructor Details

  • Method Details

    • resolveLocale

      public Locale resolveLocale​(javax.servlet.http.HttpServletRequest request)
      Specified by:
      resolveLocale in interface org.springframework.web.servlet.LocaleResolver
      Overrides:
      resolveLocale in class org.springframework.web.servlet.i18n.AcceptHeaderLocaleResolver