Package nl.vpro.validation
Annotation Type URI
-
@Target({METHOD,FIELD,ANNOTATION_TYPE,PARAMETER,TYPE_USE}) @Retention(RUNTIME) @Constraint(validatedBy=URIValidator.class) @Documented public @interface URI
Marks aString
as representing a valid URI or URL. The basic check is whethernew URI(<String>)
throws an exception
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description boolean
allowEmptyString
Class<?>[]
groups
boolean
lenient
If the check is lenient, than also 'new URL' will be tried.String
message
int
minHostParts
The number of parts (when the string is separated by a dot) the URI must have.boolean
mustHaveScheme
If true the URI must have a scheme.Class<? extends javax.validation.Payload>[]
payload
String[]
schemes
If set, the acceptable schemes.
-