edu.nrao.sss.webapp
Class HibernateFilter
java.lang.Object
edu.nrao.sss.webapp.HibernateFilter
- All Implemented Interfaces:
- javax.servlet.Filter
public class HibernateFilter
- extends Object
- implements javax.servlet.Filter
This Filter is responsible for retrieving HibernateDaos from the
HttpSession and commiting any open transactions for those Daos after the
response has been rendered. It finds the Dao's in the HttpSession using the
attribute names configured for the filter with the
edu.nrao.sss.dao.DaoSessionAttrNames
init-parameter. The
parameter value should be a comma separated list of attribute names that
can be looked up with HttpSession.getAttribute(String)
.
Method Summary |
void |
destroy()
empty implementation |
void |
doFilter(javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response,
javax.servlet.FilterChain chain)
See class comments. |
void |
init(javax.servlet.FilterConfig conf)
See class comments. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
INIT_PARAM_NAME
protected static final String INIT_PARAM_NAME
- See Also:
- Constant Field Values
HibernateFilter
public HibernateFilter()
init
public void init(javax.servlet.FilterConfig conf)
- See class comments.
- Specified by:
init
in interface javax.servlet.Filter
doFilter
public void doFilter(javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response,
javax.servlet.FilterChain chain)
throws IOException,
javax.servlet.ServletException
- See class comments.
- Specified by:
doFilter
in interface javax.servlet.Filter
- Throws:
IOException
javax.servlet.ServletException
destroy
public void destroy()
- empty implementation
- Specified by:
destroy
in interface javax.servlet.Filter
Copyright © 2009. All Rights Reserved.