Class URLUtils

java.lang.Object
io.fabric8.kubernetes.client.utils.URLUtils

public class URLUtils
extends Object
  • Constructor Details

  • Method Details

    • join

      public static String join​(String... parts)
    • 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