org.riotfamily.website.interceptor
Class IncludeOnlyInterceptor
java.lang.Object
org.springframework.web.servlet.handler.HandlerInterceptorAdapter
org.riotfamily.common.web.interceptor.PathMatchingInterceptor
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]
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IncludeOnlyInterceptor
public IncludeOnlyInterceptor()
doPreHandle
protected boolean doPreHandle(HttpServletRequest request,
HttpServletResponse response,
Object handler)
throws Exception
- Overrides:
doPreHandle
in class PathMatchingInterceptor
- Throws:
Exception