Package io.avaje.validation.constraints
Annotation Interface URI
@Target({METHOD,FIELD,ANNOTATION_TYPE,PARAMETER,TYPE_USE})
@Retention(RUNTIME)
public @interface URI
The annotated element must be a String validated to be a valid URI.
Supported types are:
StringCharSequence
-
Optional Element Summary
Optional Elements
-
Element Details
-
scheme
String schemeSet a scheme to match. Per default any scheme is allowed.- Default:
""
-
host
String hostSet the host to match, e.g. localhost. Per default any host is allowed.- Default:
""
-
port
int portSet the port to match, e.g. 80. Per default any port is allowed.- Default:
-1
-
regexp
String regexpSet a regular expression to match against. Per default anything is allowed.- Default:
""
-
flags
RegexFlag[] flagsUsed in combination withregexp()in order to specify a regular expression option- Default:
{}
-
message
String messageSet the message to use. Per default uses the built-in message key.- Default:
"{avaje.URI.message}"
-
groups
Class<?>[] groups- Default:
{}
-