public String getPathInfo() { // Use the resource id if we are a ResourceRequest // In that case, remove the query string part of the resource id, that's handled by // getParameterMap() String result = (portletRequest instanceof ResourceRequest) ? NetUtils.removeQueryString(((ResourceRequest) portletRequest).getResourceID()) : portletRequest.getParameter(WSRPURLRewriter.PathParameterName()); if (result == null) result = ""; return (result.startsWith("/")) ? result : "/" + result; }