Package org.gbif.api.util
Class URIValidator
- java.lang.Object
-
- org.gbif.api.util.URIValidator
-
-
Constructor Summary
Constructors Constructor Description URIValidator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
initialize(HttpURI uri)
Initializes the validator in preparation forisValid(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.
-
-
-
Constructor Detail
-
URIValidator
public URIValidator()
-
-
Method Detail
-
initialize
public void initialize(HttpURI uri)
Initializes the validator in preparation forisValid(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.
-
-