public class FacesViewsForwardingFilter extends HttpFilter
A filter like this is needed for extensionless requests, since the FacesServlet in at least JSF 2.1 and before does not take into account any other mapping than prefix- and extension (suffix) mapping.
For a guide on FacesViews, please see the package summary.
Constructor and Description |
---|
FacesViewsForwardingFilter() |
Modifier and Type | Method and Description |
---|---|
void |
doFilter(HttpServletRequest request,
HttpServletResponse response,
HttpSession session,
FilterChain chain)
Filter the HTTP request.
|
void |
init(FilterConfig filterConfig)
Called by the servlet container when the filter is about to be placed into service.
|
destroy, doFilter, getFilterConfig, getInitParameter, getServletContext, init
public void init(FilterConfig filterConfig) throws ServletException
HttpFilter
FilterConfig
object for later use by the getter methods. When overriding this method, call
super.init(config)
, otherwise the getter methods will throw an illegal state exception.init
in interface Filter
init
in class HttpFilter
ServletException
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)