Class Overview
Performs URL validation.
Only accepts HTTP or HTTPS URLS.
Summary
Public Methods |
static
boolean
|
isValid(String url)
Validates a URL.
|
[Expand]
Inherited Methods |
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
|
Public Constructors
Public Methods
public
static
boolean
isValid
(String url)
Validates a URL.
Handles internationalized domain names (IDNs) by converting them to ASCII, strips query strings and fragments,
returns false
if url
is null
.
Returns
true
if url
is valid; false
otherwise.