public class FacesNavigationURLCanonicalizer extends Object
This class holds different JSF utility methods.
| Constructor and Description |
|---|
FacesNavigationURLCanonicalizer() |
| Modifier and Type | Method and Description |
|---|---|
static String |
normalizeRequestURI(FacesContext context,
String viewId)
This method reads all required values from the
FacesContext and
then delegates the call to
normalizeRequestURI(String, String, String). |
static String |
normalizeRequestURI(String servletPath,
String requestPathInfo,
String viewId)
Prune the url-pattern from the
viewId if prefix mapped
FacesServlet, otherwise return the original URI. |
public static String normalizeRequestURI(FacesContext context, String viewId)
FacesContext and
then delegates the call to
normalizeRequestURI(String, String, String).context - The FacesContextviewId - the view idpublic static String normalizeRequestURI(String servletPath, String requestPathInfo, String viewId)
viewId if prefix mapped
FacesServlet, otherwise return the original URI.servletPath - the servlet pathrequestPathInfo - the path infoviewId - the view idHttpServletRequest.getServletPath(),
HttpServletRequest.getPathInfo()Copyright © 2014 OCPsoft. All Rights Reserved.