Improve InvokeValidValidator and ValidListValidator used by RESTful services #1975
Closed
Description
- For classes using
@InvokeValidate
, movelogRequest()
invalidate()
method, so that if class level validation fails, the request is logged for better debugging. - LOG.warn Exception caught in
InvokeValidateValidator
andValidListValidator
. - Refactor
ValidListValidator.isValid()
to be more concise. Add missing exception handling. - Return
false
ifInvocationTargetException
is caught inInvokeValidateValidator
. - Use specified query parameter name as corresponding class variable name, so that response payload of validation failures corresponds to the query parameter that was sent in the request. for eg.
dcmQueueName
asdcmQueueName
instead ofqueueName
.