public final class UrlValidator extends Object
Only accepts HTTP or HTTPS URLS.
Constructor and Description |
---|
UrlValidator() |
public static boolean isValid(String url)
Handles internationalized domain names (IDNs) by converting them to ASCII, strips query strings and fragments,
returns false
if url
is null
.
url
- The URL to validate.true
if url
is valid; false
otherwise.Copyright © 2002-2023 Atlassian. All Rights Reserved.