Class URLUtils


  • public class URLUtils
    extends Object
    • Constructor Detail

      • URLUtils

        public URLUtils()
    • 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)