urlNormalize
public static String urlNormalize(String input)
Normalize the given path string. A normal path string has no empty
segments (i.e., occurrences of "//"), no segments equal to ".", and no
segments equal to ".." that are preceded by a segment not equal to "..".
In contrast to Unix-style pathname normalization, for URI paths we
always retain trailing slashes.
Warning:
This method will resolve a path but not remove all places with "..", escecially
in cases where the path can not be resolved you will receive again ".." in the
path.
- Parameters:
input
- String to be normalized
- Returns:
- Normalized String
- See Also:
pathNormalize(String)