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 ElementsModifier and TypeOptional ElementDescriptionUsed in combination withregexp()in order to specify a regular expression optionClass<?>[]Set the host to match, e.g. localhost.Set the message to use.intSet the port to match, e.g. 80.Set a regular expression to match against.Set a scheme to match.
-
Element Details
-
scheme
-
host
-
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
-
message
String messageSet the message to use. Per default uses the built-in message key.- Default:
"{avaje.URI.message}"
-
groups
Class<?>[] groups- Default:
{}
-