org.riotfamily.common.web.interceptor
Class PathMatchingInterceptor

java.lang.Object
  extended by org.springframework.web.servlet.handler.HandlerInterceptorAdapter
      extended by org.riotfamily.common.web.interceptor.PathMatchingInterceptor
All Implemented Interfaces:
HandlerInterceptor
Direct Known Subclasses:
IncludeOnlyInterceptor, OncePerRequestInterceptor

public class PathMatchingInterceptor
extends HandlerInterceptorAdapter


Constructor Summary
PathMatchingInterceptor()
           
 
Method Summary
protected  boolean anyMatch(String[] patterns, String path)
           
protected  boolean doPreHandle(HttpServletRequest request, HttpServletResponse response, Object handler)
           
 boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler)
           
 void setExcludes(String[] excludes)
           
 void setIncludes(String[] includes)
           
 void setIncludesOverwriteExcludes(boolean includesOverwriteExcludes)
           
 void setPathMatcher(PathMatcher pathMatcher)
           
 
Methods inherited from class org.springframework.web.servlet.handler.HandlerInterceptorAdapter
afterCompletion, postHandle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PathMatchingInterceptor

public PathMatchingInterceptor()
Method Detail

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)