public class InterceptorRegistration
extends java.lang.Object
MappedInterceptor.| Constructor and Description |
|---|
InterceptorRegistration(HandlerInterceptor interceptor)
Create an
InterceptorRegistration instance. |
| Modifier and Type | Method and Description |
|---|---|
InterceptorRegistration |
addPathPatterns(java.util.List<java.lang.String> patterns)
List-based variant of
addPathPatterns(String...). |
InterceptorRegistration |
addPathPatterns(java.lang.String... patterns)
Add URL patterns to which the registered interceptor should apply to.
|
InterceptorRegistration |
excludePathPatterns(java.util.List<java.lang.String> patterns)
List-based variant of
excludePathPatterns(String...). |
InterceptorRegistration |
excludePathPatterns(java.lang.String... patterns)
Add URL patterns to which the registered interceptor should not apply to.
|
protected java.lang.Object |
getInterceptor()
Build the underlying interceptor.
|
protected int |
getOrder()
Return the order position to be used.
|
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(java.lang.String... patterns)
public InterceptorRegistration addPathPatterns(java.util.List<java.lang.String> patterns)
addPathPatterns(String...).public InterceptorRegistration excludePathPatterns(java.lang.String... patterns)
public InterceptorRegistration excludePathPatterns(java.util.List<java.lang.String> patterns)
excludePathPatterns(String...).public InterceptorRegistration pathMatcher(PathMatcher pathMatcher)
public InterceptorRegistration order(int order)
protected int getOrder()
protected java.lang.Object getInterceptor()
MappedInterceptor; otherwise HandlerInterceptor.