private static String createTemplate(PortletInvocationContext context, ContainerURL url, Boolean secure) { String template = context.renderURL(url, new URLFormat(secure, null, null, true)); template = TextTools.replace(template, WSRPRewritingConstants.ENC_OPEN, WSRPRewritingConstants.REWRITE_PARAMETER_OPEN); template = TextTools.replace(template, WSRPRewritingConstants.ENC_CLOSE, WSRPRewritingConstants.REWRITE_PARAMETER_CLOSE); // fix for GTNWSRP-22 if (RESOURCE_URL.equals(url)) { template += REQUIRE_REWRITE_URL_PARAM; } return template; }
String parameterSeparator = format.getWantEscapeXML() == Boolean.TRUE ? "&" : "&";
head.writeTo(sb, Boolean.TRUE == format.getWantEscapeXML() ? "&" : "&"); return sb.toString();
private static String createTemplate(PortletInvocationContext context, ContainerURL url, Boolean secure) { String template = context.renderURL(url, new URLFormat(secure, null, null, true)); template = TextTools.replace(template, WSRPRewritingConstants.ENC_OPEN, WSRPRewritingConstants.REWRITE_PARAMETER_OPEN); template = TextTools.replace(template, WSRPRewritingConstants.ENC_CLOSE, WSRPRewritingConstants.REWRITE_PARAMETER_CLOSE); // fix for GTNWSRP-22 if (RESOURCE_URL.equals(url)) { template += ADDITIONAL_RESOURCE_URL_PARAMS; } return template; }
String renderedURL = renderer.renderURL(portletTag.result.getWindowDef().getWindowId(), url, new URLFormat(null, null, true, null)); out.write(renderedURL);
String url = renderer.renderURL(new URLFormat(null, null, true, null)); resp.sendRedirect(url); return;