Class UriUtils
- java.lang.Object
-
- org.apache.felix.http.base.internal.util.UriUtils
-
public abstract class UriUtils extends Object
Some convenience methods for handling URI(-parts).
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Stringconcat(String path1, String path2)Concatenates two paths keeping their respective path-parts into consideration.static StringdecodePath(String path)Decodes a given URL-encoded path assuming it is UTF-8 encoded.static StringremoveDotSegments(String path)Removes all superfluous dot-segments using the algorithm described in RFC-3986 section 5.2.4.
-
-
-
Method Detail
-
concat
public static String concat(String path1, String path2)
Concatenates two paths keeping their respective path-parts into consideration.- Parameters:
path1- the first part of the path, can benull;path2- the second part of the path, can benull.- Returns:
- the concatenated path, can be
nullin case both given arguments werenull.
-
decodePath
public static String decodePath(String path)
Decodes a given URL-encoded path assuming it is UTF-8 encoded.- Parameters:
path- the URL-encoded path, can benull.- Returns:
- the decoded path, can be
nullonly if the given path wasnull.
-
removeDotSegments
public static String removeDotSegments(String path)
Removes all superfluous dot-segments using the algorithm described in RFC-3986 section 5.2.4.- Parameters:
path- the path to remove all dot-segments from, can benull.- Returns:
- the cleaned path, can be
nullonly if the given path wasnull.
-
-