/** * Get the base URL for tools with no "border" - (i.e. within an iframe) */ public static String getToolBorderlessBaseUrl() { return ServerConfigurationService.getToolUrl(); }
/** * Get the base URL for tools not including the ToolId * * @param <code>req</code> * The request object. If you have no access to the request object, * you can leave this null and we will try to pull the request * from ThreadLocal - if we fail it is a RunTime exception. * @return Returns true for JSR_168 portlets */ public static String getToolBaseUrl(HttpServletRequest req) { if ( req == null ) req = getRequestFromThreadLocal(); String retval = ServerConfigurationService.getToolUrl(); if ( isInlineRequest(req) ) { String currentSiteId = ToolManager.getCurrentPlacement().getContext(); retval = retval.replaceAll("tool$","site/"+currentSiteId+"/tool"); } return retval; }
String toolUrl = ServerConfigurationService.getToolUrl() + "/" + Web.escapeUrl(configuration.getId()); StoredState ss = portalService.getStoredState();
String toolUrl = ServerConfigurationService.getToolUrl() + "/" + Web.escapeUrl(placement.getId()) + "/"; log.debug("includeTool toolInline={} toolUrl={}", toolInline, toolUrl);
String toolUrl = ServerConfigurationService.getToolUrl() + "/" + Web.escapeUrl(placement.getId()) + "/"; log.debug("includeTool toolInline={} toolUrl={}", toolInline, toolUrl);