- <init>
Constructs a UrlValidator with the given scheme and validation options (see
class description).
- countToken
Returns the number of times the token appears in the target.
- isOff
Tests whether the given flag is off. If the flag is not a power of 2 (ie. 3)
this tests whether the
- isOn
Tests whether the given flag is on. If the flag is not a power of 2 (ie. 3) this
tests whether the c
- isValid
Checks if a field has a valid URL. This method is public because it is directly
used in tests.
- isValidAuthority
Returns true if the authority is properly formatted. An authority is the
combination of host name an
- isValidFragment
Returns true if the given fragment is null or fragments are allowed.
- isValidPath
Returns true if the path is valid. A null value is considered invalid.
- isValidQuery
Returns true if the query is null or if it's a properly-formatted query string.
- isValidScheme
Validates a scheme. If schemes[] was initialized to non-null, then only those
schemes are allowed. N
- error
- validate