public class PathUtil extends Object implements Serializable
Constructor and Description |
---|
PathUtil() |
Modifier and Type | Method and Description |
---|---|
static String |
getPath(List<String> segments)
Join the segments into a url path.
|
static String |
getPath(String basePath,
List<String> segments)
Join the segments into a url path.
|
static List<String> |
getSegmentsList(String path)
Returns an unmodifiable list containing the segments of the specified
path.
|
public static List<String> getSegmentsList(String path)
path
- url path to split into segments. The path may also start with
a slash `/` but it may not contain the url protocol.public static String getPath(List<String> segments)
segments
- path segments.Copyright © 2021. All rights reserved.