|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object comum.database.FechaSessaoFilter
public class FechaSessaoFilter
Filtro que fecha a sessao corrente do hibernate cada vez que o Web Container processa
uma pagina. O filtro e configurado no web.xml.
Constructor Summary | |
---|---|
FechaSessaoFilter()
Construtor. |
Method Summary | |
---|---|
void |
destroy()
Metodo destrutor. |
void |
doFilter(javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response,
javax.servlet.FilterChain chain)
Esse filtro faz pos-processamento das requisi��es, fechando a sess�o do Hibernate. |
void |
init(javax.servlet.FilterConfig arg0)
Metodo de inicializacao. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FechaSessaoFilter()
Method Detail |
---|
public void init(javax.servlet.FilterConfig arg0) throws javax.servlet.ServletException
init
in interface javax.servlet.Filter
FilterConfig
- arg0
javax.servlet.ServletException
public void doFilter(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response, javax.servlet.FilterChain chain) throws java.io.IOException, javax.servlet.ServletException
doFilter
in interface javax.servlet.Filter
java.io.IOException
javax.servlet.ServletException
public void destroy()
destroy
in interface javax.servlet.Filter
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |