@Override public String encodeURL(String path) { return response.encodeURL(path); }
public final String encodeURL(String s) { return presp.encodeURL(s); }
/** * The default behavior of this method is to call * <code>encodeURL(path)</code> on the wrapped response object. */ public String encodeURL(String path) { return response.encodeURL(path); }
public String encodeUrl(String arg0) { if (renderResponse != null) { return renderResponse.encodeURL(arg0); } return null; }
public final String encodeUrl(String s) { return presp.encodeURL(s); }
@Override public String encodeURL(String url) { return portletResponse.encodeURL(url); }
public String encodeURL(String arg0) { return portletResponse.encodeURL(arg0); }
public String encodeURL(String s) { return response.encodeURL(s); }
public String encodeUrl(String url) { return getWrapped().encodeURL(url); }
public static String encodeURL(String arg0) { PortletResponse portletResponse = getPortletResponse(); if (portletResponse == null) { throw new IllegalStateException( "The response is not PortletResponse."); } return portletResponse.encodeURL(arg0); }
@Override public String encodeResourceURL(String url) { checkNull(url, "url"); return _portletResponse.encodeURL(url); }
public String encodeResourceURL(String url) { AssertionUtil.assertNotNull("url is null.", url); if (url.indexOf("://") == -1 && !url.startsWith("/")) { return url; } return portletResponse.encodeURL(url); }
public String encodeActionURL(String url) { checkNull(url, "url"); return _portletResponse.encodeURL(url); }
public String encodeActionURL(String url) { AssertionUtil.assertNotNull("url is null.", url); return portletResponse.encodeURL(url); }
public String encodeURL(String url) { return getWrapped().encodeURL(url); }
public String encodeUrl(String url) { return getWrapped().encodeURL(url); }
public String encodeURL(String url) { return getWrapped().encodeURL(url); }
@Override public String toString() { String stringValue = null; try { stringValue = super.toString(); stringValue = portletResponse.encodeURL(stringValue); } catch (Exception e) { logger.error(e); } return stringValue; }
@Override public String toString() { String stringValue = null; try { stringValue = super.toString(); stringValue = portletResponse.encodeURL(stringValue); } catch (Exception e) { logger.error(e); } return stringValue; }
/** * Helper for admin portlets to generate portal urls */ public String getPortalURL(PortletRequest request, PortletResponse response, String path) { // get internal request context RequestContext context = (RequestContext) request.getAttribute(PortalReservedParameters.REQUEST_CONTEXT_ATTRIBUTE); String baseUrl = context.getPortalURL().getBaseURL(); String basePath = context.getPortalURL().getBasePath(); if (basePath != null && basePath.endsWith("/action")) { basePath = basePath.replace("/action", "/desktop"); } String jetspeedPath = AdminUtil.concatenatePaths(baseUrl, basePath); if (path == null) return jetspeedPath; return AdminUtil.concatenatePaths(jetspeedPath, response.encodeURL(path)); }