Example usage for org.springframework.web.servlet.config.annotation InterceptorRegistry addInterceptor

List of usage examples for org.springframework.web.servlet.config.annotation InterceptorRegistry addInterceptor

Introduction

In this page you can find the example usage for org.springframework.web.servlet.config.annotation InterceptorRegistry addInterceptor.

Prototype

public InterceptorRegistration addInterceptor(HandlerInterceptor interceptor) 

Source Link

Document

Adds the provided HandlerInterceptor .

Usage

From source file:io.lavagna.config.WebConfig.java

@Override
public void addInterceptors(InterceptorRegistry registry) {
    registry.addInterceptor(permissionMethodInterceptor);
}

From source file:org.easit.core.configurations.WebMvcConfig.java

@Override
public void addInterceptors(InterceptorRegistry registry) {
    registry.addInterceptor(new ConnectedToHandlerInterceptor(operationsRepository, pluginManager));
}

From source file:com.devnexus.ting.config.WebConfig.java

@Override
public void addInterceptors(InterceptorRegistry registry) {
    registry.addInterceptor(globalDataInterceptor()).addPathPatterns("/**");
}

From source file:br.com.mv.modulo.WebConfig.java

@Override
public void addInterceptors(InterceptorRegistry registry) {
    registry.addInterceptor(localeChangeInterceptor());
    super.addInterceptors(registry);
}

From source file:com.wanliang.site.config.WebappConfig.java

/**
 7.     * ?// w  ww .  j  a  va2 s.c  om
 8.     * @author lance
 9.     * @param registry
 10.     */
public void addInterceptors(InterceptorRegistry registry) {
    registry.addInterceptor(new UserSecurityInterceptor()).addPathPatterns("/user/**");

}

From source file:io.getlime.security.powerauth.app.rest.api.spring.configuration.WebApplicationConfig.java

/**
 * Add annotation interceptor.//from   ww  w  . j  a v a  2  s . c o  m
 * @param registry Registry of annotation interceptors.
 */
@Override
public void addInterceptors(InterceptorRegistry registry) {
    registry.addInterceptor(powerAuthInterceptor());
    super.addInterceptors(registry);
}

From source file:org.selfiepro.client.config.WebMvcConfig.java

@Override
public void addInterceptors(InterceptorRegistry registry) {
    registry.addInterceptor(new UserInterceptor(usersConnectionRepository)).addPathPatterns("/**");
}

From source file:com.nkapps.billing.configs.MvcConfig.java

@Override
public void addInterceptors(InterceptorRegistry registry) {
    registry.addInterceptor(localeChangeInterceptor());
    registry.addInterceptor(loginInterceptor());
    registry.addInterceptor(new LayoutInterceptor());
}

From source file:com.alehuo.wepas2016projekti.configuration.DevelopmentConfiguration.java

/**
 *
 * @param registry/*www  .  j  a  v  a 2 s  . co  m*/
 */
@Override
public void addInterceptors(InterceptorRegistry registry) {
    registry.addInterceptor(localeInterceptor());
}

From source file:com.mrll.md.processing.config.SwaggerConfig.java

@Override
public void addInterceptors(InterceptorRegistry registry) {
    registry.addInterceptor(new LocaleChangeInterceptor());
}