Class URLUtils
- java.lang.Object
-
- io.fabric8.kubernetes.client.utils.URLUtils
-
public class URLUtils extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classURLUtils.URLBuilder
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringencodeToUTF(String url)static booleanisValidURL(String url)static Stringjoin(String... parts)static StringpathJoin(String... strings)Joins all the given strings, ignoring nulls so that they form a URL with / between the paths without a // if the previous path ends with / and the next path starts with / unless a path item is blank
-
-
-
Method Detail
-
pathJoin
public static String pathJoin(String... strings)
Joins all the given strings, ignoring nulls so that they form a URL with / between the paths without a // if the previous path ends with / and the next path starts with / unless a path item is blank- Parameters:
strings- A list of strings which you need to concatenate.- Returns:
- the strings concatenated together with / while avoiding a double // between non blank strings.
-
isValidURL
public static boolean isValidURL(String url)
-
-