public class InterceptorRegistration extends Object
MappedInterceptor.| Constructor and Description |
|---|
InterceptorRegistration(HandlerInterceptor interceptor)
Create an
InterceptorRegistration instance. |
| Modifier and Type | Method and Description |
|---|---|
InterceptorRegistration |
addPathPatterns(String... patterns)
Add URL patterns to which the registered interceptor should apply to.
|
InterceptorRegistration |
excludePathPatterns(String... patterns)
Add URL patterns to which the registered interceptor should not apply to.
|
protected Object |
getInterceptor()
Build the underlying interceptor.
|
InterceptorRegistration |
order(int order)
Specify an order position to be used.
|
InterceptorRegistration |
pathMatcher(PathMatcher pathMatcher)
A PathMatcher implementation to use with this interceptor.
|
public InterceptorRegistration(HandlerInterceptor interceptor)
InterceptorRegistration instance.public InterceptorRegistration addPathPatterns(String... patterns)
public InterceptorRegistration excludePathPatterns(String... patterns)
public InterceptorRegistration pathMatcher(PathMatcher pathMatcher)
public InterceptorRegistration order(int order)
protected Object getInterceptor()
MappedInterceptor; otherwise HandlerInterceptor.