public final class PathUtil extends Object
Modifier and Type | Method and Description |
---|---|
static String |
buildPath(String segment,
String... moreSegments)
Builds a forward-slash-delimited path, with duplicate forward-slashes removed, and trailing slashes removed.
|
static Parameter[] |
buildPathParameters(String pathSegment)
Searches for curly-braces in the given
pathSegment , and creates a path-parameter for each that are found. |
static List<Parameter> |
mergeParameters(List<Parameter> parameterList,
Parameter... parameters)
Merges
Parameter values into the given parameterList , where conflicting
parameter-names will be replaced, and new parameters will otherwise be added. |
public static String buildPath(String segment, String... moreSegments)
segment
- First path segmentmoreSegments
- Additional path segments or null
public static Parameter[] buildPathParameters(String pathSegment)
pathSegment
, and creates a path-parameter for each that are found.pathSegment
- Path-segmentnull
public static List<Parameter> mergeParameters(List<Parameter> parameterList, Parameter... parameters)
Parameter
values into the given parameterList
, where conflicting
parameter-names
will be replaced, and new parameters will otherwise be added.parameterList
- Current list of parametersparameters
- Additional parameters to merge or null
parameterList
fieldCopyright © 2010-2018, ForgeRock All Rights Reserved.