org.riotfamily.common.web.interceptor
Class PathMatchingInterceptor
java.lang.Object
org.springframework.web.servlet.handler.HandlerInterceptorAdapter
org.riotfamily.common.web.interceptor.PathMatchingInterceptor
- All Implemented Interfaces:
- HandlerInterceptor
- Direct Known Subclasses:
- IncludeOnlyInterceptor, OncePerRequestInterceptor
public class PathMatchingInterceptor
- extends HandlerInterceptorAdapter
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PathMatchingInterceptor
public PathMatchingInterceptor()
setExcludes
public void setExcludes(String[] excludes)
setIncludes
public void setIncludes(String[] includes)
setPathMatcher
public void setPathMatcher(PathMatcher pathMatcher)
setIncludesOverwriteExcludes
public void setIncludesOverwriteExcludes(boolean includesOverwriteExcludes)
preHandle
public final boolean preHandle(HttpServletRequest request,
HttpServletResponse response,
Object handler)
throws Exception
- Specified by:
preHandle
in interface HandlerInterceptor
- Overrides:
preHandle
in class HandlerInterceptorAdapter
- Throws:
Exception
doPreHandle
protected boolean doPreHandle(HttpServletRequest request,
HttpServletResponse response,
Object handler)
throws Exception
- Throws:
Exception
anyMatch
protected boolean anyMatch(String[] patterns,
String path)