| Modifier and Type | Method and Description |
|---|---|
void |
validateResourceAndInputParams(java.lang.Object resource,
Invocable resourceMethod,
java.lang.Object[] args)
Validates resource class instance and input parameters of the
method. |
void |
validateResult(java.lang.Object resource,
Invocable resourceMethod,
java.lang.Object result)
Validates response instance / response entity of the
method. |
forExecutables, getConstraintsForClass, unwrap, validate, validateProperty, validateValuevoid validateResourceAndInputParams(java.lang.Object resource,
Invocable resourceMethod,
java.lang.Object[] args)
throws ConstraintViolationException
method. ConstraintViolationException raised
from this method should be mapped to HTTP 400 status.resource - resource class instance.resourceMethod - invocable containing handling and validation methods.args - input method parameters.ConstraintViolationException - if ConstraintViolation occurs (should be mapped to HTTP
400 status).void validateResult(java.lang.Object resource,
Invocable resourceMethod,
java.lang.Object result)
throws ConstraintViolationException
method. ConstraintViolationException raised
from this method should be mapped to HTTP 500 status.resource - resource class instance.resourceMethod - invocable containing handling and validation methods.result - response entity.ConstraintViolationException - if ConstraintViolation occurs (should be mapped to HTTP
500 status).