|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
@Contract public interface ConfiguredValidator
Configured validator for Jersey validation purposes.
| Method Summary | |
|---|---|
void |
validateResourceAndInputParams(Object resource,
Invocable resourceMethod,
Object[] args)
Validates resource class instance and input parameters of the method. |
void |
validateResult(Object resource,
Invocable resourceMethod,
Object result)
Validates response instance / response entity of the method. |
| Methods inherited from interface javax.validation.Validator |
|---|
forExecutables, getConstraintsForClass, unwrap, validate, validateProperty, validateValue |
| Method Detail |
|---|
void validateResourceAndInputParams(Object resource,
Invocable resourceMethod,
Object[] args)
throws javax.validation.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.
javax.validation.ConstraintViolationException - if ConstraintViolation occurs (should be mapped to HTTP
400 status).
void validateResult(Object resource,
Invocable resourceMethod,
Object result)
throws javax.validation.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.
javax.validation.ConstraintViolationException - if ConstraintViolation occurs (should be mapped to HTTP
500 status).
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||