com.atlassian.spring.filter
Class FlushingSpringSessionInViewFilter

java.lang.Object
  extended by org.springframework.web.filter.GenericFilterBean
      extended by org.springframework.web.filter.OncePerRequestFilter
          extended by org.springframework.orm.hibernate.support.OpenSessionInViewFilter
              extended by com.atlassian.spring.filter.FlushingSpringSessionInViewFilter
All Implemented Interfaces:
javax.servlet.Filter, org.springframework.beans.factory.BeanNameAware, org.springframework.beans.factory.DisposableBean, org.springframework.beans.factory.InitializingBean, org.springframework.web.context.ServletContextAware

public class FlushingSpringSessionInViewFilter
extends org.springframework.orm.hibernate.support.OpenSessionInViewFilter

SessionInViewFilter that explicitly flushes the session if it's connected.


Field Summary
static org.apache.log4j.Category log
           
 
Fields inherited from class org.springframework.orm.hibernate.support.OpenSessionInViewFilter
DEFAULT_SESSION_FACTORY_BEAN_NAME
 
Fields inherited from class org.springframework.web.filter.OncePerRequestFilter
ALREADY_FILTERED_SUFFIX
 
Fields inherited from class org.springframework.web.filter.GenericFilterBean
logger
 
Constructor Summary
FlushingSpringSessionInViewFilter()
           
 
Method Summary
protected  void closeSession(net.sf.hibernate.Session session, net.sf.hibernate.SessionFactory sessionFactory)
           
protected  void doFilterInternal(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, javax.servlet.FilterChain filterChain)
           
protected  boolean isDatabaseSetUp()
           
 
Methods inherited from class org.springframework.orm.hibernate.support.OpenSessionInViewFilter
getSession, getSessionFactoryBeanName, isSingleSession, lookupSessionFactory, lookupSessionFactory, openSession, setSessionFactoryBeanName, setSingleSession
 
Methods inherited from class org.springframework.web.filter.OncePerRequestFilter
doFilter, getAlreadyFilteredAttributeName, shouldNotFilter
 
Methods inherited from class org.springframework.web.filter.GenericFilterBean
addRequiredProperty, afterPropertiesSet, destroy, getFilterConfig, getFilterName, getServletContext, init, initBeanWrapper, initFilterBean, setBeanName, setFilterConfig, setServletContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

public static final org.apache.log4j.Category log
Constructor Detail

FlushingSpringSessionInViewFilter

public FlushingSpringSessionInViewFilter()
Method Detail

doFilterInternal

protected void doFilterInternal(javax.servlet.http.HttpServletRequest request,
                                javax.servlet.http.HttpServletResponse response,
                                javax.servlet.FilterChain filterChain)
                         throws javax.servlet.ServletException,
                                IOException
Overrides:
doFilterInternal in class org.springframework.orm.hibernate.support.OpenSessionInViewFilter
Throws:
javax.servlet.ServletException
IOException

isDatabaseSetUp

protected boolean isDatabaseSetUp()

closeSession

protected void closeSession(net.sf.hibernate.Session session,
                            net.sf.hibernate.SessionFactory sessionFactory)
Overrides:
closeSession in class org.springframework.orm.hibernate.support.OpenSessionInViewFilter


Atlassian Spring is developed by Atlassian Software Systems.