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:dijalmasilva.Loader.java

@Override
public void addInterceptors(InterceptorRegistry registry) {
    registry.addInterceptor(new TransactionInterceptor()).addPathPatterns("/user/home/*");
    registry.addInterceptor(new TransactionInterceptor()).addPathPatterns("/groups/*");
    registry.addInterceptor(new TransactionInterceptor()).addPathPatterns("/idolos/*");
}

From source file:com.mazmy.MainServerApplicant.java

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

From source file:org.gocom.euler.demo2.Demo2Application.java

/**
* ?/*from  w  ww. j a va  2  s  .c  o m*/
* @author lance
* @param registry
*/
public void addInterceptors(InterceptorRegistry registry) {
    registry.addInterceptor(new UserSecurityInterceptor()).addPathPatterns("/user/**");
}

From source file:com.github.spring.example.SpringExampleApp.java

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

From source file:com.hypersocket.json.WebMvcConfiguration.java

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

From source file:com.nirwansyah.dicka.springboot.webconfig.ConfigWeb.java

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

From source file:eu.supersede.fe.multitenant.WebMvcConfig.java

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

From source file:at.ac.tuwien.dsg.cloud.utilities.test.kongtestservice.AppConfig.java

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

From source file:br.edu.ifpb.blogsoon.webapp.config.ConfigAutorizacao.java

@Override
public void addInterceptors(InterceptorRegistry registry) {
    registry.addInterceptor(new Autorizacao()).addPathPatterns("/usuario/**")
            .excludePathPatterns("/usuario/login").excludePathPatterns("/usuario/cadastro");
}

From source file:com.tribuo.backend.configuration.SecurityConfig.java

@Override
public void addInterceptors(InterceptorRegistry registry) {
    registry.addInterceptor(new SecurityInterceptor(config, "GoogleOidcClient")).addPathPatterns("/oidc/*");
    registry.addInterceptor(new SecurityInterceptor(config)).addPathPatterns("/protected/*");
}