Open Kilda Java Documentation
RequestInterceptorConfig.java
Go to the documentation of this file.
1 package org.openkilda.auth.config;
2 
3 import org.springframework.beans.factory.annotation.Autowired;
4 import org.springframework.context.annotation.Configuration;
5 import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
6 import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;
7 
9 
10 @Configuration
11 public class RequestInterceptorConfig extends WebMvcConfigurerAdapter {
12 
13  @Autowired
14  private RequestInterceptor requestInterceptor;
15 
16  @Override
17  public void addInterceptors(final InterceptorRegistry registry) {
18  registry.addInterceptor(requestInterceptor);
19  }
20 }
21 
void addInterceptors(final InterceptorRegistry registry)