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.
FacesViews
,
ExtensionAction
,
PathAction
,
FacesServletDispatchMethod
,
UriExtensionRequestWrapper
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()
Convenience init() method without FilterConfig parameter which will be called by init(FilterConfig).
|
destroy, doFilter, getFilterConfig, getInitParameter, getServletContext, init
public void init() throws ServletException
HttpFilter
init
in class HttpFilter
ServletException
- When filter's initialization failed.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–2016 OmniFaces. All rights reserved.