public class UriUtils
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
concat(java.lang.String path1,
java.lang.String path2)
Concatenates two paths keeping their respective path-parts into consideration.
|
static java.lang.String |
decodePath(java.lang.String path)
Decodes a given URL-encoded path assuming it is UTF-8 encoded.
|
static java.lang.String |
decodePath(java.lang.String path,
java.lang.String encoding)
Decodes a given URL-encoded path using a given character encoding.
|
static java.lang.String |
removeDotSegments(java.lang.String path)
Removes all superfluous dot-segments using the algorithm described in RFC-3986 section 5.2.4.
|
public static java.lang.String concat(java.lang.String path1,
java.lang.String path2)
path1 - the first part of the path, can be null;path2 - the second part of the path, can be null.null in case both given arguments were null.public static java.lang.String decodePath(java.lang.String path)
path - the URL-encoded path, can be null.null only if the given path was null.public static java.lang.String decodePath(java.lang.String path,
java.lang.String encoding)
path - the URL-encoded path, can be null;encoding - the character encoding to use, cannot be null.null only if the given path was null.public static java.lang.String removeDotSegments(java.lang.String path)
path - the path to remove all dot-segments from, can be null.null only if the given path was null.Copyright © 2006-2014 The Apache Software Foundation. All Rights Reserved.