Java Utililty Methods URI Value Check

List of utility methods to do URI Value Check

Description

The list of methods to do URI Value Check are organized into topic(s).

Method

URIvalidateUri(String uri, String name)
Does input validation for uri parameters.
if (uri == null)
    throw new NullPointerException("'" + name + "' cannot be null");
try {
    URI u = new URI(uri);
    if (!u.isAbsolute())
        throw new URISyntaxException(uri, "missing scheme component", 0);
    return u;
} catch (URISyntaxException e) {
...