org.riotfamily.website.interceptor
Class IncludeOnlyInterceptor

java.lang.Object
  extended by org.springframework.web.servlet.handler.HandlerInterceptorAdapter
      extended by org.riotfamily.common.web.interceptor.PathMatchingInterceptor
          extended by org.riotfamily.website.interceptor.IncludeOnlyInterceptor
All Implemented Interfaces:
HandlerInterceptor

public class IncludeOnlyInterceptor
extends PathMatchingInterceptor

HandlerInterceptor that sends a 404 error if the request is not an include request, i.e. was not dispatched by a RequestDispatcher.

Author:
Felix Gnass [fgnass at neteye dot de]

Constructor Summary
IncludeOnlyInterceptor()
           
 
Method Summary
protected  boolean doPreHandle(HttpServletRequest request, HttpServletResponse response, Object handler)
           
 
Methods inherited from class org.riotfamily.common.web.interceptor.PathMatchingInterceptor
anyMatch, preHandle, setExcludes, setIncludes, setIncludesOverwriteExcludes, setPathMatcher
 
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

IncludeOnlyInterceptor

public IncludeOnlyInterceptor()
Method Detail

doPreHandle

protected boolean doPreHandle(HttpServletRequest request,
                              HttpServletResponse response,
                              Object handler)
                       throws Exception
Overrides:
doPreHandle in class PathMatchingInterceptor
Throws:
Exception