Interface ConfiguredValidator
-
- All Superinterfaces:
javax.validation.Validator
@Contract public interface ConfiguredValidator extends javax.validation.Validator
Configured validator for Jersey validation purposes.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
validateResourceAndInputParams(java.lang.Object resource, Invocable resourceMethod, java.lang.Object[] args)
Validates resource class instance and input parameters of themethod
.void
validateResult(java.lang.Object resource, Invocable resourceMethod, java.lang.Object result)
Validates response instance / response entity of themethod
.
-
-
-
Method Detail
-
validateResourceAndInputParams
void validateResourceAndInputParams(java.lang.Object resource, Invocable resourceMethod, java.lang.Object[] args) throws javax.validation.ConstraintViolationException
Validates resource class instance and input parameters of themethod
.ConstraintViolationException
raised from this method should be mapped to HTTP 400 status.- Parameters:
resource
- resource class instance.resourceMethod
- invocable containing handling and validation methods.args
- input method parameters.- Throws:
javax.validation.ConstraintViolationException
- ifConstraintViolation
occurs (should be mapped to HTTP 400 status).
-
validateResult
void validateResult(java.lang.Object resource, Invocable resourceMethod, java.lang.Object result) throws javax.validation.ConstraintViolationException
Validates response instance / response entity of themethod
.ConstraintViolationException
raised from this method should be mapped to HTTP 500 status.- Parameters:
resource
- resource class instance.resourceMethod
- invocable containing handling and validation methods.result
- response entity.- Throws:
javax.validation.ConstraintViolationException
- ifConstraintViolation
occurs (should be mapped to HTTP 500 status).
-
-