public final class MappedInterceptor extends Object
| Constructor and Description |
|---|
MappedInterceptor(String[] includePatterns,
HandlerInterceptor interceptor)
Create a new MappedInterceptor instance.
|
MappedInterceptor(String[] includePatterns,
String[] excludePatterns,
HandlerInterceptor interceptor)
Create a new MappedInterceptor instance.
|
MappedInterceptor(String[] includePatterns,
String[] excludePatterns,
WebRequestInterceptor interceptor)
Create a new MappedInterceptor instance.
|
MappedInterceptor(String[] includePatterns,
WebRequestInterceptor interceptor)
Create a new MappedInterceptor instance.
|
| Modifier and Type | Method and Description |
|---|---|
HandlerInterceptor |
getInterceptor()
The actual Interceptor reference.
|
String[] |
getPathPatterns()
The path into the application the interceptor is mapped to.
|
boolean |
matches(String lookupPath,
PathMatcher pathMatcher)
Returns
true if the interceptor applies to the given request path. |
public MappedInterceptor(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(String[] includePatterns, 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(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(String[] includePatterns, 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 String[] getPathPatterns()
public HandlerInterceptor getInterceptor()
public boolean matches(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