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 LocaleresolveLocale(javax.servlet.http.HttpServletRequest request)Methods inherited from class org.springframework.web.servlet.i18n.AcceptHeaderLocaleResolver
getDefaultLocale, getSupportedLocales, setDefaultLocale, setLocale, setSupportedLocalesMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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
-
CustomLocaleResolver
public CustomLocaleResolver()
-
-
Method Details
-
resolveLocale
- Specified by:
resolveLocalein interfaceorg.springframework.web.servlet.LocaleResolver- Overrides:
resolveLocalein classorg.springframework.web.servlet.i18n.AcceptHeaderLocaleResolver
-