We need a Validator<String> implementation which validates that the value is a valid URL.
That’s a rather open-ended requirement, so I think the correct approach is to base this on the BaseAsValidator: attempt to convert the value to a URL (per the UKf code Xalan extension that does this at present) and then validate AS a URL if required.
Utility might be improved by extending that basic functionality to, say, pass/fail on http:// vs https:// schemes. That could be provided by adding specific Validator<URL> implementations or some specific special case methods.
We need a
Validator<String>
implementation which validates that the value is a valid URL.That’s a rather open-ended requirement, so I think the correct approach is to base this on the
BaseAsValidator
: attempt to convert the value to a URL (per the UKf code Xalan extension that does this at present) and then validate AS a URL if required.Utility might be improved by extending that basic functionality to, say, pass/fail on
http://
vshttps://
schemes. That could be provided by adding specificValidator<URL>
implementations or some specific special case methods.