rest-assured/src/main/java/io/restassured/internal/UriValidator.java
public static boolean isUri(String potentialUri) {
        if (StringUtils.isBlank(potentialUri)) {
            return false;
        }

        try {
            URI uri = new URI(potentialUri);
            return uri.getScheme() != null && uri.getHost() != null;
        } catch (URISyntaxException e) {
            return false;
        }
    }
public static boolean isUri(String potentialUri) {
        if (StringUtils.isBlank(potentialUri)) {
            return false;
        }

        try {
            URI uri = new URI(potentialUri);
            return uri.getScheme() != null && uri.getHost() != null;
        } catch (URISyntaxException e) {
            return false;
        }
    }
public static boolean isUri ( String potentialUri ) { if ( StringUtils . isBlank ( potentialUri ) ) { return false ; } try { URI uri = new URI ( potentialUri ) ; return uri . getScheme ( ) != null && uri . getHost ( ) != null ; } catch ( URISyntaxException e ) { return false ; } }
Checks if the <code>potentialUri</code> is a URI.

@param potentialUri The URI to check.
@return <code>true</code> if it is a URI, <code>false</code> otherwise.
Checks if the <code > potentialUri< / code > is a URI .