Class InterceptorRegistry
java.lang.Object
org.springframework.web.servlet.config.annotation.InterceptorRegistry
Helps with configuring a list of mapped interceptors.
- Since:
- 3.1
- Author:
- Rossen Stoyanchev, Keith Donald
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionaddInterceptor(HandlerInterceptor interceptor) Adds the providedHandlerInterceptor.addWebRequestInterceptor(WebRequestInterceptor interceptor) Adds the providedWebRequestInterceptor.Return all registered interceptors.
- 
Constructor Details- 
InterceptorRegistrypublic InterceptorRegistry()
 
- 
- 
Method Details- 
addInterceptorAdds the providedHandlerInterceptor.- Parameters:
- interceptor- the interceptor to add
- Returns:
- an InterceptorRegistrationthat allows you optionally configure the registered interceptor further for example adding URL patterns it should apply to.
 
- 
addWebRequestInterceptorAdds the providedWebRequestInterceptor.- Parameters:
- interceptor- the interceptor to add
- Returns:
- an InterceptorRegistrationthat allows you optionally configure the registered interceptor further for example adding URL patterns it should apply to.
 
- 
getInterceptorsReturn all registered interceptors.
 
-