public final class MappedInterceptor
extends java.lang.Object
| Constructor and Description |
|---|
MappedInterceptor(java.lang.String[] includePatterns,
HandlerInterceptor interceptor)
Create a new MappedInterceptor instance.
|
MappedInterceptor(java.lang.String[] includePatterns,
java.lang.String[] excludePatterns,
HandlerInterceptor interceptor)
Create a new MappedInterceptor instance.
|
MappedInterceptor(java.lang.String[] includePatterns,
java.lang.String[] excludePatterns,
WebRequestInterceptor interceptor)
Create a new MappedInterceptor instance.
|
MappedInterceptor(java.lang.String[] includePatterns,
WebRequestInterceptor interceptor)
Create a new MappedInterceptor instance.
|
| Modifier and Type | Method and Description |
|---|---|
HandlerInterceptor |
getInterceptor()
The actual Interceptor reference.
|
java.lang.String[] |
getPathPatterns()
The path into the application the interceptor is mapped to.
|
boolean |
matches(java.lang.String lookupPath,
PathMatcher pathMatcher)
Returns
true if the interceptor applies to the given request path. |
public MappedInterceptor(java.lang.String[] includePatterns,
HandlerInterceptor interceptor)
includePatterns - the path patterns to map with a null value matching to all pathsinterceptor - the HandlerInterceptor instance to map to the given patternspublic MappedInterceptor(java.lang.String[] includePatterns,
java.lang.String[] excludePatterns,
HandlerInterceptor interceptor)
includePatterns - the path patterns to map with a null value matching to all pathsexcludePatterns - the path patterns to excludeinterceptor - the HandlerInterceptor instance to map to the given patternspublic MappedInterceptor(java.lang.String[] includePatterns,
WebRequestInterceptor interceptor)
includePatterns - the path patterns to map with a null value matching to all pathsinterceptor - the WebRequestInterceptor instance to map to the given patternspublic MappedInterceptor(java.lang.String[] includePatterns,
java.lang.String[] excludePatterns,
WebRequestInterceptor interceptor)
includePatterns - the path patterns to map with a null value matching to all pathsinterceptor - the WebRequestInterceptor instance to map to the given patternspublic java.lang.String[] getPathPatterns()
public HandlerInterceptor getInterceptor()
public boolean matches(java.lang.String lookupPath,
PathMatcher pathMatcher)
true if the interceptor applies to the given request path.lookupPath - the current request pathpathMatcher - a path matcher for path pattern matching