public class InterceptorRegistration
extends java.lang.Object
MappedInterceptor
.Modifier and Type | Field and Description |
---|---|
private java.util.List<java.lang.String> |
excludePatterns |
private java.util.List<java.lang.String> |
includePatterns |
private HandlerInterceptor |
interceptor |
private PathMatcher |
pathMatcher |
Constructor and Description |
---|
InterceptorRegistration(HandlerInterceptor interceptor)
Creates an
InterceptorRegistration instance. |
Modifier and Type | Method and Description |
---|---|
InterceptorRegistration |
addPathPatterns(java.lang.String... patterns)
Add URL patterns to which the registered interceptor should apply to.
|
InterceptorRegistration |
excludePathPatterns(java.lang.String... patterns)
Add URL patterns to which the registered interceptor should not apply to.
|
protected java.lang.Object |
getInterceptor()
Returns the underlying interceptor.
|
InterceptorRegistration |
pathMatcher(PathMatcher pathMatcher)
A PathMatcher implementation to use with this interceptor.
|
private static java.lang.String[] |
toArray(java.util.List<java.lang.String> list) |
private final HandlerInterceptor interceptor
private final java.util.List<java.lang.String> includePatterns
private final java.util.List<java.lang.String> excludePatterns
private PathMatcher pathMatcher
public InterceptorRegistration(HandlerInterceptor interceptor)
InterceptorRegistration
instance.public InterceptorRegistration addPathPatterns(java.lang.String... patterns)
public InterceptorRegistration excludePathPatterns(java.lang.String... patterns)
public InterceptorRegistration pathMatcher(PathMatcher pathMatcher)
protected java.lang.Object getInterceptor()
MappedInterceptor
; otherwise HandlerInterceptor
.private static java.lang.String[] toArray(java.util.List<java.lang.String> list)