Class URLUtils
java.lang.Object
io.fabric8.kubernetes.client.utils.URLUtils
public class URLUtils extends Object
-
Constructor Summary
Constructors Constructor Description URLUtils() -
Method Summary
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
-
Constructor Details
-
URLUtils
public URLUtils()
-
-
Method Details
-
join
-
pathJoin
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
-
encodeToUTF
- Throws:
UnsupportedEncodingException
-