Class URLUtils
- java.lang.Object
-
- io.fabric8.kubernetes.client.utils.URLUtils
-
public class URLUtils extends Object
-
-
Constructor Summary
Constructors Constructor Description URLUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
encodeToUTF(String url)
static boolean
isValidURL(String url)
static String
join(String... parts)
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
-
-
-
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)
-
encodeToUTF
public static String encodeToUTF(String url) throws UnsupportedEncodingException
- Throws:
UnsupportedEncodingException
-
-