if (mapping == null || !Util.isPrefixMapped(mapping)) { return uri; } else {
/** * <p>If the specified mapping is a prefix mapping, and the provided * request URI (usually the value from <code>ExternalContext.getRequestServletPath()</code>) * starts with <code>mapping + '/'</code>, prune the mapping from the * URI and return it, otherwise, return the original URI. * * @param uri the servlet request path * @param mapping the FacesServlet mapping used for this request * @return the URI without additional FacesServlet mappings * * @since 1.2 */ protected String normalizeRequestURI(String uri, String mapping) { if (mapping == null || !isPrefixMapped(mapping)) { return uri; } int length = mapping.length() + 1; StringBuilder builder = new StringBuilder(length); builder.append(mapping).append('/'); String mappingMod = builder.toString(); boolean logged = false; while (uri.startsWith(mappingMod)) { if (!logged && LOGGER.isLoggable(WARNING)) { logged = true; LOGGER.log(WARNING, "jsf.viewhandler.requestpath.recursion", new Object[] {uri, mapping}); } uri = uri.substring(length - 1); } return uri; }
if (mapping == null || !Util.isPrefixMapped(mapping)) { return uri; } else {
if (mapping == null || !Util.isPrefixMapped(mapping)) { return uri; } else {
if (mapping == null || !Util.isPrefixMapped(mapping)) { return uri; } else {
if (mapping == null || !isPrefixMapped(mapping)) { return uri;
if (mapping == null || !isPrefixMapped(mapping)) { return uri;
if (mapping == null || !Util.isPrefixMapped(mapping)) { return uri; } else {
/** * Normalize the request path to exclude JSF invocation information. * If the FacesServlet servicing this request was prefix mapped, then * the path to the FacesServlet will be removed. * If the FacesServlet servicing this request was extension mapped, then * the extension will be trimmed off. * @param context the <code>FacesContext</code> for the current request * @return the request path without JSF invocation information */ private String normalizeResourceRequest(FacesContext context) { String path; String facesServletMapping = Util.getFacesMapping(context); // If it is extension mapped if (!Util.isPrefixMapped(facesServletMapping)) { path = context.getExternalContext().getRequestServletPath(); // strip off the extension int i = path.lastIndexOf("."); if (0 < i) { path = path.substring(0, i); } } else { path = context.getExternalContext().getRequestPathInfo(); } return path; }
/** * Normalize the request path to exclude JSF invocation information. * If the FacesServlet servicing this request was prefix mapped, then * the path to the FacesServlet will be removed. * If the FacesServlet servicing this request was extension mapped, then * the extension will be trimmed off. * * @param context the <code>FacesContext</code> for the current request * @return the request path without JSF invocation information */ private String normalizeResourceRequest(FacesContext context) { String path; String facesServletMapping = getFacesMapping(context); // If it is extension mapped if (!isPrefixMapped(facesServletMapping)) { path = context.getExternalContext().getRequestServletPath(); // strip off the extension int i = path.lastIndexOf("."); if (0 < i) { path = path.substring(0, i); } } else { path = context.getExternalContext().getRequestPathInfo(); } return path; }
/** * Normalize the request path to exclude JSF invocation information. * If the FacesServlet servicing this request was prefix mapped, then * the path to the FacesServlet will be removed. * If the FacesServlet servicing this request was extension mapped, then * the extension will be trimmed off. * * @param context the <code>FacesContext</code> for the current request * @return the request path without JSF invocation information */ private String normalizeResourceRequest(FacesContext context) { String path; String facesServletMapping = getFacesMapping(context); // If it is extension mapped if (!isPrefixMapped(facesServletMapping)) { path = context.getExternalContext().getRequestServletPath(); // strip off the extension int i = path.lastIndexOf("."); if (0 < i) { path = path.substring(0, i); } } else { path = context.getExternalContext().getRequestPathInfo(); } return path; }
/** * Normalize the request path to exclude JSF invocation information. * If the FacesServlet servicing this request was prefix mapped, then * the path to the FacesServlet will be removed. * If the FacesServlet servicing this request was extension mapped, then * the extension will be trimmed off. * * @param context the <code>FacesContext</code> for the current request * @return the request path without JSF invocation information */ private String normalizeResourceRequest(FacesContext context) { String path; String facesServletMapping = getFacesMapping(context); // If it is extension mapped if (!isPrefixMapped(facesServletMapping)) { path = context.getExternalContext().getRequestServletPath(); // strip off the extension int i = path.lastIndexOf("."); if (0 < i) { path = path.substring(0, i); } } else { path = context.getExternalContext().getRequestPathInfo(); } return path; }
if (!Util.isPrefixMapped(mapping)) { viewId = convertViewId(context, viewId); } else { if (extContext.getRequestPathInfo() == null && mapping != null && Util.isPrefixMapped(mapping)) {
if (!Util.isPrefixMapped(mapping)) { viewId = convertViewId(context, viewId); } else { if (extContext.getRequestPathInfo() == null && mapping != null && Util.isPrefixMapped(mapping)) {
String viewId; if (mapping != null) { if (!Util.isPrefixMapped(mapping)) { viewId = convertViewId(ctx, rawViewId); } else {
if (extContext.getRequestPathInfo() == null && mapping != null && isPrefixMapped(mapping)) {
if (extContext.getRequestPathInfo() == null && mapping != null && isPrefixMapped(mapping)) {
if (extContext.getRequestPathInfo() == null && mapping != null && isPrefixMapped(mapping)) {
} else if (!isPrefixMapped(mapping)) {
} else if (!isPrefixMapped(mapping)) {