public static boolean validateHttpURL(String webhdfsUrl) {
    String[] schemes = {"http", "https"};
    return validateURL(webhdfsUrl, schemes);
  }
Validates filesystem URL
@param webhdfsUrl url
@return is url valid
contrib/views/utils/src/main/java/org/apache/ambari/view/utils/ambari/ValidatorUtils.java