org.mmbase.applications.vprowizards.spring.cache
Class CacheHandlerInterceptor
java.lang.Object
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
|
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 |
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
CacheHandlerInterceptor
public CacheHandlerInterceptor()
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