public class UriBuilder extends Object
| Modifier and Type | Method and Description |
|---|---|
static String |
cleanUri(String uri)
Clean the given URI from any multi slash delimiters in between uri segments
|
static String |
concatUriSegments(String... segments)
Concatenates multple URI segments in a save way and makes sure that only one slash is in between each
|
public static String concatUriSegments(String... segments)
segments - URI segments to put together in a valid mannerpublic static String cleanUri(String uri)
DANGER: This method applies a regular expression against the given uri and this takes some resources of course. Do think twice before using this method.
uri - to be cleaned from possible multi slash delimitersCopyright © 2016–2021. All rights reserved.