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:com.cloudfoundry.samples.spring.config.WebMvcConfig.java

public void addInterceptors(InterceptorRegistry registry) {
    registry.addInterceptor(new UserInterceptor(usersConnectionRepository));
}

From source file:business.security.LoggingConfiguration.java

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

From source file:co.carlosandresjimenez.gotit.backend.Application.java

@Override
public void addInterceptors(final InterceptorRegistry registry) {

    registry.addInterceptor(securityInterceptor()).addPathPatterns("/**").excludePathPatterns("/load/**");

}

From source file:com.jeanchampemont.notedown.config.WebMvcConfiguration.java

@Override
public void addInterceptors(InterceptorRegistry registry) {
    registry.addInterceptor(securityInterceptor);
    registry.addInterceptor(prettyTimeInterceptor);
    registry.addInterceptor(propertiesInterceptor);
}

From source file:com.social.google.dssm2015.config.WebMvcConfig.java

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

From source file:co.realestate.agencies.webapp.config.WebConfig.java

@Override
public void addInterceptors(InterceptorRegistry registry) {
    registry.addInterceptor(new DeviceResolverHandlerInterceptor());
    // registry.addInterceptor(SiteSwitcherHandlerInterceptor.mDot("testdomain.com"));
    registry.addInterceptor(SiteSwitcherHandlerInterceptor.urlPath("/mobile", "/tablet", "/webapp-xyz"));
}

From source file:com.demo.config.ServletContextConfig.java

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

From source file:eu.trentorise.game.config.WebConfig.java

@Override
public void addInterceptors(InterceptorRegistry registry) {
    registry.addInterceptor(authInterceptor).addPathPatterns("/gengine/**", "/console/**", "/model/**",
            "/data/**", "/exec/**", "/notification/**");
}

From source file:com.arborsoft.platform.api.config.ApiConfiguration.java

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

From source file:com.uimirror.auth.conf.DispatcherConfig.java

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