https://, and ftp://. The behavior of validation is modified by passing in one of these options:
ALLOW_2_SLASHES - [FALSE]: Allows double '/' characters in the path component.NO_FRAGMENT- [FALSE]: By default fragments are allowed. If this option is included then fragments are flagged as illegal.ALLOW_ALL_SCHEMES - [FALSE]: By default only http, https, and ftp are considered valid schemes. Enabling this option will let any scheme pass validation. This was originally based org.apache.commons.validator.UrlValidator, but the dependency on Jakarta-ORO was removed and it now uses java.util.regexp instead. Usage example:
<code> Component.add(new UrlValidator({"http", "https"})); </code>
@author Vincent Demay
@since 1.2.6
@see "http://www.ietf.org/rfc/rfc2396.txt"
| |