|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.web.servlet.handler.MappedInterceptor
public final class MappedInterceptor
Holds information about a HandlerInterceptor mapped to a path into the application. Provides a method to match a request path to the mapped path patterns.
Constructor Summary | |
---|---|
MappedInterceptor(String[] pathPatterns,
HandlerInterceptor interceptor)
Create a new MappedInterceptor instance. |
|
MappedInterceptor(String[] pathPatterns,
WebRequestInterceptor interceptor)
Create a new MappedInterceptor instance. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MappedInterceptor(String[] pathPatterns, HandlerInterceptor interceptor)
pathPatterns
- the path patterns to map with a null
value matching to all pathsinterceptor
- the HandlerInterceptor instance to map to the given patternspublic MappedInterceptor(String[] pathPatterns, WebRequestInterceptor interceptor)
pathPatterns
- the path patterns to map with a null
value matching to all pathsinterceptor
- the WebRequestInterceptor instance to map to the given patternsMethod Detail |
---|
public 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
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |