net.sf.xaj.web
Class XmlResourceCleanupHandler

java.lang.Object
  extended by net.sf.xaj.web.XmlResourceCleanupHandler
All Implemented Interfaces:
org.springframework.web.servlet.HandlerInterceptor

public class XmlResourceCleanupHandler
extends java.lang.Object
implements org.springframework.web.servlet.HandlerInterceptor

HandlerInterceptor implementation that looks for List<XmlResource> and XmlResource objects in order to call the XmlResource.free() method on them.

Version:
$Revision: 45 $ $Date: 2007-10-07 19:40:28 +1300 (Sun, 07 Oct 2007) $
Author:
matt

Constructor Summary
XmlResourceCleanupHandler()
           
 
Method Summary
 void afterCompletion(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, java.lang.Object handler, java.lang.Exception ex)
           
 java.util.Map<java.lang.String,java.util.Set<java.lang.String>> getBeanPropertyMapping()
           
 void postHandle(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, java.lang.Object handler, org.springframework.web.servlet.ModelAndView modelAndView)
           
 boolean preHandle(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, java.lang.Object handler)
           
 void setBeanPropertyMapping(java.util.Map<java.lang.String,java.util.Set<java.lang.String>> beanPropertyMapping)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XmlResourceCleanupHandler

public XmlResourceCleanupHandler()
Method Detail

afterCompletion

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

postHandle

public void postHandle(javax.servlet.http.HttpServletRequest request,
                       javax.servlet.http.HttpServletResponse response,
                       java.lang.Object handler,
                       org.springframework.web.servlet.ModelAndView modelAndView)
                throws java.lang.Exception
Specified by:
postHandle in interface org.springframework.web.servlet.HandlerInterceptor
Throws:
java.lang.Exception

preHandle

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

getBeanPropertyMapping

public java.util.Map<java.lang.String,java.util.Set<java.lang.String>> getBeanPropertyMapping()
Returns:
the beanPropertyMapping

setBeanPropertyMapping

public void setBeanPropertyMapping(java.util.Map<java.lang.String,java.util.Set<java.lang.String>> beanPropertyMapping)
Parameters:
beanPropertyMapping - the beanPropertyMapping to set