Created
January 26, 2012 19:52
-
-
Save gustavopinto/1684699 to your computer and use it in GitHub Desktop.
filtroPaginas
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @WebFilter(filterName = "/FiltroPaginas", urlPatterns = { | |
| "/private/pages/primeiroAcessoServidor.jsf", | |
| "/private/pages/principal.jsf", | |
| "/private/pages/selecaoVinculo.jsf", | |
| "/private/pages/alterarSenha.jsf" | |
| }, dispatcherTypes = { | |
| DispatcherType.REQUEST, | |
| DispatcherType.FORWARD, | |
| DispatcherType.INCLUDE | |
| }) | |
| public class FiltroPaginas implements Filter { | |
| private static final long serialVersionUID = 8280602524086159400L; | |
| @Inject | |
| private Fachada fachada; | |
| ... | |
| @Override | |
| public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException { | |
| /// nesse ponto, todos objetos injetados são null | |
| .... | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment