/** * Sets the export url.<p> * * @param url the export url */ public void setExportUrl(String url) { m_exportUrl = insertContextStrings(url); m_exportUrlConfigured = url; }
/** * Sets the export url.<p> * * @param url the export url */ public void setExportUrl(String url) { m_exportUrl = insertContextStrings(url); m_exportUrlConfigured = url; }
/** * Returns a normalized export path.<p> * * Replacing macros, normalizing the path and taking care of relative paths.<p> * * @param exportPath the export path to normalize * * @return the normalized export path */ protected String normalizeExportPath(String exportPath) { String result = insertContextStrings(exportPath); result = OpenCms.getSystemInfo().getAbsoluteRfsPathRelativeToWebApplication(result); if (result.endsWith(File.separator)) { // ensure export path does NOT end with a File.separator result = result.substring(0, result.length() - 1); } return result; }
/** * Returns a normalized export path.<p> * * Replacing macros, normalizing the path and taking care of relative paths.<p> * * @param exportPath the export path to normalize * * @return the normalized export path */ protected String normalizeExportPath(String exportPath) { String result = insertContextStrings(exportPath); result = OpenCms.getSystemInfo().getAbsoluteRfsPathRelativeToWebApplication(result); if (result.endsWith(File.separator)) { // ensure export path does NOT end with a File.separator result = result.substring(0, result.length() - 1); } return result; }
/** * Returns a normalized rfs prefix.<p> * * Replacing macros and normalizing the path.<p> * * @param rfsPrefix the prefix to normalize * * @return the normalized rfs prefix */ protected String normalizeRfsPrefix(String rfsPrefix) { String result = insertContextStrings(rfsPrefix); if (!isValidURL(result)) { result = CmsFileUtil.normalizePath(result, '/'); } result = CmsFileUtil.normalizePath(result, '/'); if (CmsResource.isFolder(result)) { // ensure prefix does NOT end with a folder '/' result = result.substring(0, result.length() - 1); } return result; }
/** * Returns a normalized rfs prefix.<p> * * Replacing macros and normalizing the path.<p> * * @param rfsPrefix the prefix to normalize * * @return the normalized rfs prefix */ protected String normalizeRfsPrefix(String rfsPrefix) { String result = insertContextStrings(rfsPrefix); if (!isValidURL(result)) { result = CmsFileUtil.normalizePath(result, '/'); } result = CmsFileUtil.normalizePath(result, '/'); if (CmsResource.isFolder(result)) { // ensure prefix does NOT end with a folder '/' result = result.substring(0, result.length() - 1); } return result; }
m_vfsPrefix = insertContextStrings(m_vfsPrefixConfigured); m_vfsPrefix = CmsFileUtil.normalizePath(m_vfsPrefix, '/'); if (CmsResource.isFolder(m_vfsPrefix)) {
m_vfsPrefix = insertContextStrings(m_vfsPrefixConfigured); m_vfsPrefix = CmsFileUtil.normalizePath(m_vfsPrefix, '/'); if (CmsResource.isFolder(m_vfsPrefix)) {