@Override public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException { final HttpServletRequest req = (HttpServletRequest) request; final HttpServletResponse resp = (HttpServletResponse) response; if (m_trivialAccessController.handle(req, resp, chain)) { return; } if (m_formBasedAccessController.handle(req, resp, chain)) { return; } if (m_developmentAccessController.handle(req, resp, chain)) { return; } BEANS.get(ServletFilterHelper.class).forwardToLoginForm(req, resp); }
@Override public void destroy() { m_developmentAccessController.destroy(); m_formBasedAccessController.destroy(); m_trivialAccessController.destroy(); }