Class UriUtils
java.lang.Object
org.apache.felix.http.base.internal.util.UriUtils
Some convenience methods for handling URI(-parts).
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringConcatenates 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 Details
-
concat
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
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
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.
-