public static boolean isUrl(final String resource) {
        return StringUtils.isNotBlank(resource) && resource.startsWith("http");
    }
Is url boolean.

@param resource the resource
@return true/false
core/cas-server-core-util-api/src/main/java/org/apereo/cas/util/ResourceUtils.java