public class InterceptorRegistry
extends java.lang.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 java.util.List<java.lang.Object> |
getInterceptors()
Returns 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.protected java.util.List<java.lang.Object> getInterceptors()