List of utility methods to do URL is Absolute
boolean | isAbsoluteURL(String url) is Absolute URL String urlLC = url.toLowerCase().trim(); return urlLC.startsWith("http://") || urlLC.startsWith("https://") || urlLC.startsWith("ftp://") || urlLC.startsWith("file://") || urlLC.startsWith("//"); |
boolean | isAbsoluteURL(String url) Return true if the URL given in parameter is absolute if (url.startsWith("file:/") || (url.startsWith("http:/"))) { return true; return false; |