Annotation Interface URL
@Documented
@Target({FIELD,METHOD,PARAMETER,CONSTRUCTOR,TYPE_USE,ANNOTATION_TYPE})
@Retention(RUNTIME)
@Repeatable(URL.List.class)
@Constraint(validatedBy=io.fluxzero.sdk.tracking.handling.validation.constraints.URLValidator.class)
public @interface URL
Validates that a character sequence can be parsed as a URL and optionally matches URL components.
-
Nested Class Summary
Nested Classes -
Optional Element Summary
Optional Elements
-
Element Details
-
message
-
groups
-
payload
Class<? extends jakarta.validation.Payload>[] payload- Returns:
- payload metadata associated with this constraint
- Default:
{}
-
protocol
String protocol- Returns:
- required URL protocol, or an empty string to allow any protocol
- Default:
""
-
host
-
port
int port- Returns:
- required URL port, or
-1to allow any port
- Default:
-1
-
regexp
-
flags
jakarta.validation.constraints.Pattern.Flag[] flags- Returns:
- pattern flags used for
regexp()
- Default:
{}
-