/** * Similar to {@link FilenameUtils#getFullPath(String)}, but fixes the problem with Windows platform for situations * when the path starts with "/" (servlet context relative resources) which are resolved to "\" on windows. * * @param path * to compute filePath from. * @return full path from the provided path. */ public static final String getFullPath(final String path) { final String fullPath = FilenameUtils.getFullPath(path); return replaceWithServletContextSeparatorIfNedded(fullPath); }
/** * Similar to {@link FilenameUtils#normalize(String)}, but fixes the problem with Windows platform for situations * when the path starts with "/" (servlet context relative resources) which are resolved to "\" on windows. * * @param path * to compute filePath from. * @return full path from the provided path. */ public static final String normalize(final String path) { final String normalized = FilenameUtils.normalize(path); return replaceWithServletContextSeparatorIfNedded(normalized); }
/** * Similar to {@link FilenameUtils#getFullPath(String)}, but fixes the problem with Windows platform for situations * when the path starts with "/" (servlet context relative resources) which are resolved to "\" on windows. * * @param path * to compute filePath from. * @return full path from the provided path. */ public static final String getFullPath(final String path) { final String fullPath = FilenameUtils.getFullPath(path); return replaceWithServletContextSeparatorIfNedded(fullPath); }
/** * Similar to {@link FilenameUtils#normalize(String)}, but fixes the problem with Windows platform for situations * when the path starts with "/" (servlet context relative resources) which are resolved to "\" on windows. * * @param path * to compute filePath from. * @return full path from the provided path. */ public static final String normalize(final String path) { final String normalized = FilenameUtils.normalize(path); return replaceWithServletContextSeparatorIfNedded(normalized); }