Class UriExtensionRequestWrapper

All Implemented Interfaces:
HttpServletRequest, ServletRequest

public class UriExtensionRequestWrapper extends HttpServletRequestWrapper
This wraps a request to an extensionless Faces view and provides an extension for all methods that reveal the servlet path. Additional the path info is set to null.

This is needed since Faces implementations inspect the request to determine if a prefix (path) or suffix (extension) mapping was used. If the request is neither (in effect, an "exact and extensionless mapping), Faces will get confused and not be able to derive view IDs etc correctly.

For a guide on FacesViews, please see the package summary.

Since:
1.4
Author:
Arjan Tijms
See Also: