Example usage for Java org.apache.commons.validator UrlValidator fields, constructors, methods, implement or subclass
The text is from its open source code.
int | ALLOW_ALL_SCHEMES Allows all validly formatted schemes to pass validation instead of supplying a set of valid schemes. |
int | ALLOW_2_SLASHES Allow two slashes in the path component of the URL. |
int | NO_FRAGMENTS Enabling this options disallows any URL fragments. |
UrlValidator() Create a UrlValidator with default properties. | |
UrlValidator(String[] schemes, int options) Behavour of validation is modified by passing in options: | |
UrlValidator(String[] schemes) Behavior of validation is modified by passing in several strings options: | |
UrlValidator(int options) Initialize a UrlValidator with the given validation options. |
boolean | isValid(String value) Checks if a field has a valid url address. |