Constructor and Description |
---|
URIValidator() |
Modifier and Type | Method and Description |
---|---|
void |
initialize(HttpURI uri)
Initializes the validator in preparation for
isValid(URI, javax.validation.ConstraintValidatorContext) calls. |
boolean |
isValid(URI uri,
javax.validation.ConstraintValidatorContext context)
Implements the validation logic, checking if a URI is valid or not.
|
public URIValidator()
public void initialize(HttpURI uri)
isValid(URI, javax.validation.ConstraintValidatorContext)
calls.
The constraint annotation for a given constraint declaration
is passed.
This method is guaranteed to be called before any use of this instance for
validation.Copyright © 2024 Global Biodiversity Information Facility (GBIF). All rights reserved.