public class FacesViewsForwardingFilter extends HttpFilter
For dispatching to the FacesServlet, 2 methods are available:
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. It's recommended to not
override this method. Instead, just use HttpFilter.init()
method. When overriding this method anyway, don't forget
to 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
request
- The HTTP request.response
- The HTTP response.session
- The HTTP session, if any, else null
.chain
- The filter chain to continue.ServletException
- As wrapper exception when something fails in the request processing.IOException
- Whenever something fails at I/O level.Filter.doFilter(ServletRequest, ServletResponse, FilterChain)
Copyright © 2012–2014 OmniFaces. All rights reserved.