List of usage examples for org.springframework.web.servlet.config.annotation InterceptorRegistry addInterceptor
public InterceptorRegistration addInterceptor(HandlerInterceptor interceptor)
From source file:net.gbmb.collector.ApplicationRunner.java
@Override public void addInterceptors(InterceptorRegistry registry) { // TODO initialisation pas clean (besoin de faire un bean puis resource ?) registry.addInterceptor(ff); }
From source file:at.porscheinformatik.common.spring.web.extended.config.SpringWebExtendedConfig.java
@Override public void addInterceptors(InterceptorRegistry registry) { registry.addInterceptor(new RequestResponseContextHandlerInterceptor()); List<LocaleSource> sources = configurerConfig.getLocaleSources(); if (!CollectionUtils.isEmpty(sources)) { LocaleHandlerInterceptor interceptor = new LocaleHandlerInterceptor(sources); interceptor.setAvailableLocales(configurerConfig.appConfig().getSupportedLocales()); registry.addInterceptor(interceptor); }/*from w w w . ja v a 2s. co m*/ }
From source file:com.project.framework.configuration.WebMvcConfig.java
@Override public void addInterceptors(InterceptorRegistry registry) { LocaleChangeInterceptor interceptor = new LocaleChangeInterceptor(); interceptor.setParamName("lang"); registry.addInterceptor(interceptor); }
From source file:net.mamian.mySpringboot.WebAppConfigurer.java
@Override public void addInterceptors(InterceptorRegistry registry) { //?/*from ww w . j av a 2s .co m*/ //addPathPatterns //excludePathPatterns registry.addInterceptor(new AuthInterceptor()).addPathPatterns("/admin/**").excludePathPatterns("/admin", "/admin/login", "/admin/logout", "/admin/setup", "/admin/dashboard"); super.addInterceptors(registry); }
From source file:org.wallride.autoconfigure.WallRideWebMvcConfiguration.java
@Override public void addInterceptors(InterceptorRegistry registry) { registry.addInterceptor(defaultModelAttributeInterceptor()); registry.addInterceptor(setupRedirectInterceptor()); }
From source file:com.castlemock.war.config.MvcConfig.java
/** * The method takes an interceptor registry and add the interceptor created in the method localeChangeInterceptor * @param registry The interceptor registry which the interceptor will be added to. *//*from ww w . j av a2 s .co m*/ @Override public void addInterceptors(final InterceptorRegistry registry) { registry.addInterceptor(localeChangeInterceptor()); registry.addInterceptor(loggingInterceptor()); registry.addInterceptor(securityInterceptor); }
From source file:com.indeed.imhotep.web.config.SpringConfiguration.java
@Override public void addInterceptors(InterceptorRegistry registry) { registry.addInterceptor(corsInterceptor()); }
From source file:org.unidle.config.MvcConfiguration.java
@Override public void addInterceptors(final InterceptorRegistry registry) { registry.addInterceptor(buildTimestampInterceptor()); registry.addInterceptor(currentUserInterceptor()); registry.addInterceptor(segmentIoApiKeyInterceptor()); }
From source file:org.fenixedu.bennu.spring.BennuSpringConfiguration.java
@Override public void addInterceptors(InterceptorRegistry registry) { registry.addInterceptor(new CSRFInterceptor(csrfTokenRepository())); registry.addInterceptor(new PortalHandlerInterceptor()); }
From source file:com.springsource.greenhouse.config.WebConfig.java
public void addInterceptors(InterceptorRegistry registry) { registry.addInterceptor(new AccountExposingHandlerInterceptor()); registry.addInterceptor(new DateTimeZoneHandlerInterceptor()); registry.addInterceptor(new UserLocationHandlerInterceptor()); registry.addInterceptor(new DeviceResolverHandlerInterceptor()); }