private boolean isURLAbsolute(String url) {
        for (String protocol : PROTOCOLS) {
            if (url.startsWith(protocol)) {
                return true;
            }
        }

        return false;
    }
private boolean isURLAbsolute ( String url ) { for ( String protocol : PROTOCOLS ) { if ( url . startsWith ( protocol ) ) { return true ; } } return false ; }
Attempts determining whether the provided URL is an absolute one, based on the scheme.

@param url provided url
@return boolean