Class URLUtils


  • public class URLUtils
    extends Object
    Contains general utility functions for handling URLs.
    Author:
    Michele Mostarda (mostarda@fbk.eu)
    • Method Detail

      • isOnline

        public static boolean isOnline​(String url)
                                throws MalformedURLException
        Verifies if the specified URL is reachable online.
        Parameters:
        url - input URL.
        Returns:
        true if the resource can be accessed, false otherwise.
        Throws:
        MalformedURLException - if url is malformed.