org.hibernate.tutorial.web
Class SessionInterceptor
java.lang.Object
org.hibernate.tutorial.web.SessionInterceptor
- All Implemented Interfaces:
- Filter
public class SessionInterceptor
- extends Object
- implements Filter
Illustrates a servlet filter used to apply a Hibernate session
to the "context" of the web request.
- Author:
- Steve Ebersole
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SessionInterceptor
public SessionInterceptor()
doFilter
public void doFilter(ServletRequest request,
ServletResponse response,
FilterChain chain)
throws IOException,
ServletException
- Specified by:
doFilter
in interface Filter
- Throws:
IOException
ServletException
init
public void init(FilterConfig filterConfig)
throws ServletException
- Specified by:
init
in interface Filter
- Throws:
ServletException
destroy
public void destroy()
- Specified by:
destroy
in interface Filter
Copyright © 2009 Hibernate.org. All Rights Reserved.