Package org.xbricks.heimdall.config
Class AppConfig
java.lang.Object
org.xbricks.heimdall.config.AppConfig
- All Implemented Interfaces:
org.springframework.web.servlet.config.annotation.WebMvcConfigurer
@Configuration
public class AppConfig
extends Object
implements org.springframework.web.servlet.config.annotation.WebMvcConfigurer
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addInterceptors
(org.springframework.web.servlet.config.annotation.InterceptorRegistry registry) org.springframework.web.servlet.LocaleResolver
org.springframework.context.MessageSource
org.springframework.web.servlet.i18n.LocaleChangeInterceptor
org.springframework.web.servlet.LocaleResolver
org.springframework.web.context.request.RequestContextListener
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, addResourceHandlers, addReturnValueHandlers, addViewControllers, configureAsyncSupport, configureContentNegotiation, configureDefaultServletHandling, configureHandlerExceptionResolvers, configureMessageConverters, configurePathMatch, configureViewResolvers, extendHandlerExceptionResolvers, extendMessageConverters, getMessageCodesResolver, getValidator
-
Constructor Details
-
AppConfig
public AppConfig()
-
-
Method Details
-
getLocaleResolver
@Bean(name="localeResolver") public org.springframework.web.servlet.LocaleResolver getLocaleResolver() -
localeChangeInterceptor
@Bean public org.springframework.web.servlet.i18n.LocaleChangeInterceptor localeChangeInterceptor() -
getMessageResource
@Bean(name="messageSource") public org.springframework.context.MessageSource getMessageResource() -
localeResolver
@Bean public org.springframework.web.servlet.LocaleResolver localeResolver() -
addInterceptors
public void addInterceptors(org.springframework.web.servlet.config.annotation.InterceptorRegistry registry) - Specified by:
addInterceptors
in interfaceorg.springframework.web.servlet.config.annotation.WebMvcConfigurer
-
usernameValidator
-
passwordMatchesValidator
-
requestContextListener
@Bean @ConditionalOnMissingBean(org.springframework.web.context.request.RequestContextListener.class) public org.springframework.web.context.request.RequestContextListener requestContextListener()
-