Search in sources :

Example 11 with LocaleChangeInterceptor

use of org.springframework.web.servlet.i18n.LocaleChangeInterceptor in project Activiti by Activiti.

the class DispatcherServletConfiguration method localeChangeInterceptor.

@Bean
public LocaleChangeInterceptor localeChangeInterceptor() {
    log.debug("Configuring localeChangeInterceptor");
    LocaleChangeInterceptor localeChangeInterceptor = new LocaleChangeInterceptor();
    localeChangeInterceptor.setParamName("language");
    return localeChangeInterceptor;
}
Also used : LocaleChangeInterceptor(org.springframework.web.servlet.i18n.LocaleChangeInterceptor) Bean(org.springframework.context.annotation.Bean)

Example 12 with LocaleChangeInterceptor

use of org.springframework.web.servlet.i18n.LocaleChangeInterceptor in project Activiti by Activiti.

the class DispatcherServletConfiguration method localeChangeInterceptor.

@Bean
public LocaleChangeInterceptor localeChangeInterceptor() {
    log.debug("Configuring localeChangeInterceptor");
    LocaleChangeInterceptor localeChangeInterceptor = new LocaleChangeInterceptor();
    localeChangeInterceptor.setParamName("language");
    return localeChangeInterceptor;
}
Also used : LocaleChangeInterceptor(org.springframework.web.servlet.i18n.LocaleChangeInterceptor) Bean(org.springframework.context.annotation.Bean)

Example 13 with LocaleChangeInterceptor

use of org.springframework.web.servlet.i18n.LocaleChangeInterceptor in project Activiti by Activiti.

the class DispatcherServletConfiguration method localeChangeInterceptor.

@Bean
public LocaleChangeInterceptor localeChangeInterceptor() {
    log.debug("Configuring localeChangeInterceptor");
    LocaleChangeInterceptor localeChangeInterceptor = new LocaleChangeInterceptor();
    localeChangeInterceptor.setParamName("language");
    return localeChangeInterceptor;
}
Also used : LocaleChangeInterceptor(org.springframework.web.servlet.i18n.LocaleChangeInterceptor) Bean(org.springframework.context.annotation.Bean)

Aggregations

LocaleChangeInterceptor (org.springframework.web.servlet.i18n.LocaleChangeInterceptor)13 Bean (org.springframework.context.annotation.Bean)7 ThemeChangeInterceptor (org.springframework.web.servlet.theme.ThemeChangeInterceptor)5 Test (org.junit.Test)4 MockHttpServletRequest (org.springframework.mock.web.test.MockHttpServletRequest)4 HandlerExecutionChain (org.springframework.web.servlet.HandlerExecutionChain)4 ConversionServiceExposingInterceptor (org.springframework.web.servlet.handler.ConversionServiceExposingInterceptor)4 RequestMappingHandlerMapping (org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping)3 ConditionalOnMissingBean (org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean)2 RefreshScope (org.springframework.cloud.context.config.annotation.RefreshScope)2 MockHttpServletResponse (org.springframework.mock.web.test.MockHttpServletResponse)2 ModelAndView (org.springframework.web.servlet.ModelAndView)2 SimpleUrlHandlerMapping (org.springframework.web.servlet.handler.SimpleUrlHandlerMapping)2 UserRoleAuthorizationInterceptor (org.springframework.web.servlet.handler.UserRoleAuthorizationInterceptor)2 SimpleControllerHandlerAdapter (org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter)2 ArrayList (java.util.ArrayList)1 CipherBean (org.cryptacular.bean.CipherBean)1 Before (org.junit.Before)1 MutablePropertyValues (org.springframework.beans.MutablePropertyValues)1 RuntimeBeanReference (org.springframework.beans.factory.config.RuntimeBeanReference)1