comum.database
Class FechaSessaoFilter

java.lang.Object
  extended by comum.database.FechaSessaoFilter
All Implemented Interfaces:
javax.servlet.Filter

public class FechaSessaoFilter
extends java.lang.Object
implements javax.servlet.Filter

Filtro que fecha a sessao corrente do hibernate cada vez que o Web Container processa uma pagina. O filtro e configurado no web.xml.

Since:
N/C
Version:
N/C
Author:
garten

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

FechaSessaoFilter

public FechaSessaoFilter()
Construtor.

Since:
N/C
Method Detail

init

public void init(javax.servlet.FilterConfig arg0)
          throws javax.servlet.ServletException
Metodo de inicializacao.

Specified by:
init in interface javax.servlet.Filter
Parameters:
FilterConfig - arg0
Throws:
javax.servlet.ServletException
Since:
N/C

doFilter

public void doFilter(javax.servlet.ServletRequest request,
                     javax.servlet.ServletResponse response,
                     javax.servlet.FilterChain chain)
              throws java.io.IOException,
                     javax.servlet.ServletException
Esse filtro faz pos-processamento das requisi��es, fechando a sess�o do Hibernate.

Specified by:
doFilter in interface javax.servlet.Filter
Throws:
java.io.IOException
javax.servlet.ServletException
Since:
N/C

destroy

public void destroy()
Metodo destrutor.

Specified by:
destroy in interface javax.servlet.Filter
Since:
N/C


Copyright © 2007, PRODEPA - Processamento de Dados do Pará