link = CmsLinkManager.removeOpenCmsContext(link);
/** * Returns the absolute path of the requested resource in the VFS of OpenCms.<p> * * @return the absolute path of the requested resource in the VFS of OpenCms */ public String getRequestResourceName() { if (CmsStringUtil.isNotEmptyOrWhitespaceOnly(getRequestUri())) { return CmsLinkManager.removeOpenCmsContext(getRequestUri()); } return getRequestUri(); }
/** * Builds the Javascript to set the currently active item object.<p> * * @param itemUrl the URL of the currently selected item */ protected void buildJsonActiveItem(String itemUrl) { if (itemUrl.startsWith(OpenCms.getSiteManager().getWorkplaceServer())) { // remove workplace server prefix itemUrl = itemUrl.substring(OpenCms.getSiteManager().getWorkplaceServer().length()); } // remove context prefix to read resource from VFS itemUrl = CmsLinkManager.removeOpenCmsContext(itemUrl); try { JspWriter out = getJsp().getJspContext().getOut(); if (getCms().existsResource(itemUrl)) { try { out.print(buildJsonItemObject(getCms().readResource(itemUrl))); } catch (CmsException e) { // can not happen in theory, because we used existsResource() before... } } else { out.print(RETURNVALUE_NONE); } } catch (IOException e) { if (LOG.isErrorEnabled()) { LOG.error(e.getLocalizedMessage(), e); } } }
/** * Returns the close link.<p> * * @return the close link */ public String getCloseLink() { // create a map with empty "resource" parameter to avoid changing the folder when returning to explorer file list if (getParamCloseLink() != null) { return getParamCloseLink(); } else if (getParamFramename() != null) { // no workplace frame mode (currently used for galleries) // frame name parameter found, get URI String frameUri = getSettings().getFrameUris().get(getParamFramename()); if (frameUri != null) { // remove context path from URI before inclusion frameUri = CmsLinkManager.removeOpenCmsContext(frameUri); return frameUri; } } return FILE_EXPLORER_FILELIST; }
frameUri = CmsLinkManager.removeOpenCmsContext(frameUri);
|| targetMatcher.equals(cms.getRequestContext().getRequestMatcher())) { path = CmsLinkManager.removeOpenCmsContext(path); boolean isWorkplaceServer = OpenCms.getSiteManager().isWorkplaceRequest(targetMatcher) || targetMatcher.equals(cms.getRequestContext().getRequestMatcher()); path = CmsLinkManager.removeOpenCmsContext(path);
log("looking up:" + currentelement); currentelement = CmsLinkManager.removeOpenCmsContext(currentelement);
wpResource = CmsLinkManager.removeOpenCmsContext(wpResource);