/** * Returns the RFS name to use for caching the given VFS resource with parameters in the disk cache.<p> * * @param online if true, the online disk cache is used, the offline disk cache otherwise * @param rootPath the VFS resource root path to get the RFS cache name for * @param parameters the parameters of the request to the VFS resource * * @return the RFS name to use for caching the given VFS resource with parameters */ public String getCacheName(boolean online, String rootPath, String parameters) { String rfsName = CmsFileUtil.getRepositoryName(m_rfsRepository, rootPath, online); if (CmsStringUtil.isNotEmpty(parameters)) { String extension = CmsFileUtil.getExtension(rfsName); // build the RFS name for the VFS name with parameters rfsName = CmsFileUtil.getRfsPath(rfsName, extension, parameters); } return rfsName; }
/** * Returns the RFS name to use for caching the given VFS resource with parameters in the disk cache.<p> * * @param online if true, the online disk cache is used, the offline disk cache otherwise * @param rootPath the VFS resource root path to get the RFS cache name for * @param parameters the parameters of the request to the VFS resource * * @return the RFS name to use for caching the given VFS resource with parameters */ public String getCacheName(boolean online, String rootPath, String parameters) { String rfsName = CmsFileUtil.getRepositoryName(m_rfsRepository, rootPath, online); if (CmsStringUtil.isNotEmpty(parameters)) { String extension = CmsFileUtil.getExtension(rfsName); // build the RFS name for the VFS name with parameters rfsName = CmsFileUtil.getRfsPath(rfsName, extension, parameters); } return rfsName; }
/** * Returns the RFS path for a JSP resource.<p> * * This does not check whether there actually exists a file at the returned path. * * @param resource the JSP resource * @param online true if the path for the online project should be returned * * @return the RFS path for the JSP * * @throws CmsLoaderException if accessing the resource loader fails */ private String getJspRfsPath(CmsResource resource, boolean online) throws CmsLoaderException { String jspVfsName = resource.getRootPath(); String extension; int loaderId = OpenCms.getResourceManager().getResourceType(resource.getTypeId()).getLoaderId(); if ((loaderId == CmsJspLoader.RESOURCE_LOADER_ID) && (!jspVfsName.endsWith(JSP_EXTENSION))) { // this is a true JSP resource that does not end with ".jsp" extension = JSP_EXTENSION; } else { // not a JSP resource or already ends with ".jsp" extension = ""; } String jspPath = CmsFileUtil.getRepositoryName(m_jspRepository, jspVfsName + extension, online); return jspPath; } }
String jspTargetName = CmsFileUtil.getRepositoryName( m_jspWebAppRepository, jspVfsName + extension, String jspPath = CmsFileUtil.getRepositoryName( m_jspRepository, jspVfsName + extension,
String jspTargetName = CmsFileUtil.getRepositoryName( m_jspWebAppRepository, jspVfsName + extension, String jspPath = CmsFileUtil.getRepositoryName( m_jspRepository, jspVfsName + extension,