public static boolean hasProtocol(String[] urls) {
    for (String url : urls) {
      if (!hasProtocol(url))
        return false;
    }
    return true;
  }
Checks if all the urls in the array contains protocol
@param urls Array of urls
@return true if all the urls contain protocol
contrib/views/utils/src/main/java/org/apache/ambari/view/utils/ambari/Services.java