public class OpenSQLSessionInViewFilter
extends org.springframework.web.filter.OncePerRequestFilter
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_SESSION_FACTORY_BEAN_NAME |
| Constructor and Description |
|---|
OpenSQLSessionInViewFilter() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
closeSession(br.com.anteros.persistence.session.SQLSession session,
br.com.anteros.persistence.session.SQLSessionFactory sessionFactory) |
protected void |
doFilterInternal(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
javax.servlet.FilterChain filterChain) |
protected br.com.anteros.persistence.session.SQLSession |
getSession(br.com.anteros.persistence.session.SQLSessionFactory sessionFactory) |
protected String |
getSessionFactoryBeanName() |
protected boolean |
isSingleSession() |
protected br.com.anteros.persistence.session.SQLSessionFactory |
lookupSessionFactory() |
protected br.com.anteros.persistence.session.SQLSessionFactory |
lookupSessionFactory(javax.servlet.http.HttpServletRequest request) |
void |
setSessionFactoryBeanName(String sessionFactoryBeanName) |
void |
setSingleSession(boolean singleSession) |
protected boolean |
shouldNotFilterAsyncDispatch() |
protected boolean |
shouldNotFilterErrorDispatch() |
doFilter, getAlreadyFilteredAttributeName, isAsyncDispatch, isAsyncStarted, shouldNotFilterpublic static final String DEFAULT_SESSION_FACTORY_BEAN_NAME
public void setSessionFactoryBeanName(String sessionFactoryBeanName)
protected String getSessionFactoryBeanName()
public void setSingleSession(boolean singleSession)
protected boolean isSingleSession()
protected boolean shouldNotFilterAsyncDispatch()
shouldNotFilterAsyncDispatch in class org.springframework.web.filter.OncePerRequestFilterprotected boolean shouldNotFilterErrorDispatch()
shouldNotFilterErrorDispatch in class org.springframework.web.filter.OncePerRequestFilterprotected void doFilterInternal(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
javax.servlet.FilterChain filterChain)
throws javax.servlet.ServletException,
IOException
doFilterInternal in class org.springframework.web.filter.OncePerRequestFilterjavax.servlet.ServletExceptionIOExceptionprotected br.com.anteros.persistence.session.SQLSessionFactory lookupSessionFactory(javax.servlet.http.HttpServletRequest request)
protected br.com.anteros.persistence.session.SQLSessionFactory lookupSessionFactory()
protected br.com.anteros.persistence.session.SQLSession getSession(br.com.anteros.persistence.session.SQLSessionFactory sessionFactory)
throws org.springframework.dao.DataAccessResourceFailureException
org.springframework.dao.DataAccessResourceFailureExceptionprotected void closeSession(br.com.anteros.persistence.session.SQLSession session,
br.com.anteros.persistence.session.SQLSessionFactory sessionFactory)
Copyright © 2016 Anteros Tecnologia. All rights reserved.