org.varienaja.util
Class SelectiveOpenSessionInViewFilter

java.lang.Object
  extended by org.springframework.web.filter.GenericFilterBean
      extended by org.springframework.web.filter.OncePerRequestFilter
          extended by org.springframework.orm.hibernate3.support.OpenSessionInViewFilter
              extended by org.varienaja.util.SelectiveOpenSessionInViewFilter
All Implemented Interfaces:
javax.servlet.Filter

public class SelectiveOpenSessionInViewFilter
extends org.springframework.orm.hibernate3.support.OpenSessionInViewFilter

The SelectiveOpenSessionInViewFilter selectively applies the OpenSessionInViewFilter, depending on the requestparameters.

Author:
Varienaja

Field Summary
 
Fields inherited from class org.springframework.orm.hibernate3.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
SelectiveOpenSessionInViewFilter()
          Creates a new SelectiveOpenSessionInViewFilter.
 
Method Summary
protected  void doFilterInternal(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, javax.servlet.FilterChain filterChain)
           
protected  void initFilterBean()
           
 
Methods inherited from class org.springframework.orm.hibernate3.support.OpenSessionInViewFilter
closeSession, getSession, getSessionFactoryBeanName, isSingleSession, lookupSessionFactory, lookupSessionFactory, setSessionFactoryBeanName, setSingleSession
 
Methods inherited from class org.springframework.web.filter.OncePerRequestFilter
doFilter, getAlreadyFilteredAttributeName, shouldNotFilter
 
Methods inherited from class org.springframework.web.filter.GenericFilterBean
addRequiredProperty, destroy, getFilterConfig, getFilterName, getServletContext, init, initBeanWrapper, setFilterConfig
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SelectiveOpenSessionInViewFilter

public SelectiveOpenSessionInViewFilter()
Creates a new SelectiveOpenSessionInViewFilter. When configuring this object, you must specify the keyvaluelist-property. This property should contain a list of K=V; elements.

Method Detail

doFilterInternal

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

initFilterBean

protected void initFilterBean()
                       throws javax.servlet.ServletException
Overrides:
initFilterBean in class org.springframework.web.filter.GenericFilterBean
Throws:
javax.servlet.ServletException


Copyright © 2010 A.J.V.. All Rights Reserved.