org.mmbase.applications.vprowizards.spring.cache
Class CacheHandlerInterceptor

java.lang.Object
  extended by org.mmbase.applications.vprowizards.spring.cache.CacheHandlerInterceptor
All Implemented Interfaces:
org.springframework.web.servlet.HandlerInterceptor
Direct Known Subclasses:
BasicCacheHandlerInterceptor, OSCacheHandlerInterceptor

public abstract class CacheHandlerInterceptor
extends Object
implements org.springframework.web.servlet.HandlerInterceptor

Author:
ebunders

Field Summary
protected  List<Handling> handlings
           
static String PARAM_NAME
          By what name the list of cache flush hints are registered in the request
 
Constructor Summary
CacheHandlerInterceptor()
           
 
Method Summary
protected  void addHandling(Handling handling)
          Add a handling to this cache handler
 void afterCompletion(HttpServletRequest request, HttpServletResponse response, Object handler, Exception ex)
           
 void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler, org.springframework.web.servlet.ModelAndView modelAndView)
          for each cache flush hint, all handlings are checked, and all handlings of similar type are invoked.
 boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PARAM_NAME

public static final String PARAM_NAME
By what name the list of cache flush hints are registered in the request

See Also:
Constant Field Values

handlings

protected List<Handling> handlings
Constructor Detail

CacheHandlerInterceptor

public CacheHandlerInterceptor()
Method Detail

addHandling

protected void addHandling(Handling handling)
Add a handling to this cache handler

Parameters:
handling -

afterCompletion

public void afterCompletion(HttpServletRequest request,
                            HttpServletResponse response,
                            Object handler,
                            Exception ex)
                     throws Exception
Specified by:
afterCompletion in interface org.springframework.web.servlet.HandlerInterceptor
Throws:
Exception

postHandle

public final void postHandle(HttpServletRequest request,
                             HttpServletResponse response,
                             Object handler,
                             org.springframework.web.servlet.ModelAndView modelAndView)
                      throws Exception
for each cache flush hint, all handlings are checked, and all handlings of similar type are invoked.

Specified by:
postHandle in interface org.springframework.web.servlet.HandlerInterceptor
Throws:
Exception

preHandle

public boolean preHandle(HttpServletRequest request,
                         HttpServletResponse response,
                         Object handler)
                  throws Exception
Specified by:
preHandle in interface org.springframework.web.servlet.HandlerInterceptor
Throws:
Exception


MMBase 2.0-SNAPSHOT - null