public class FacesExceptionFilter extends HttpFilter
To get it to run, map this filter on the <servlet-name>
of the FacesServlet
.
<filter> <filter-name>facesExceptionFilter</filter-name> <filter-class>org.omnifaces.filter.FacesExceptionFilter</filter-class> </filter> <filter-mapping> <filter-name>facesExceptionFilter</filter-name> <servlet-name>facesServlet</servlet-name> </filter-mapping>
Constructor and Description |
---|
FacesExceptionFilter() |
Modifier and Type | Method and Description |
---|---|
void |
doFilter(HttpServletRequest request,
HttpServletResponse response,
HttpSession session,
FilterChain chain)
Filter the HTTP request.
|
destroy, doFilter, getFilterConfig, getInitParameter, getServletContext, init, init
public void doFilter(HttpServletRequest request, HttpServletResponse response, HttpSession session, FilterChain chain) throws ServletException, IOException
HttpFilter
null
if there is no session.doFilter
in class HttpFilter
ServletException
IOException
Filter.doFilter(ServletRequest, ServletResponse, FilterChain)