public class InterceptorRegistry extends Object
| Constructor and Description |
|---|
InterceptorRegistry() |
| Modifier and Type | Method and Description |
|---|---|
InterceptorRegistration |
addInterceptor(HandlerInterceptor interceptor)
Adds the provided
HandlerInterceptor. |
InterceptorRegistration |
addWebRequestInterceptor(WebRequestInterceptor interceptor)
Adds the provided
WebRequestInterceptor. |
protected List<Object> |
getInterceptors()
Return all registered interceptors.
|
public InterceptorRegistration addInterceptor(HandlerInterceptor interceptor)
HandlerInterceptor.interceptor - the interceptor to addInterceptorRegistration that allows you optionally configure the
registered interceptor further for example adding URL patterns it should apply to.public InterceptorRegistration addWebRequestInterceptor(WebRequestInterceptor interceptor)
WebRequestInterceptor.interceptor - the interceptor to addInterceptorRegistration that allows you optionally configure the
registered interceptor further for example adding URL patterns it should apply to.