Announcement Announcement Module
Collapse
No announcement yet.
RESTFul Validation approach Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • RESTFul Validation approach

    Hi,

    I was trying to write validation wrapper for RESTFul service. One approach which I used was using aop:aspect to call validate method (using Spring Validator F/W) before controllers methods are invoked (using custom anotation to facilitate the same). This is working ok (TODO - Validation Exception formatting/Customization) . Is there better way to do the same? Can I do the same using filters in Spring (request can come as JSON or XML) ? Please suggest.

    -Shishir
Working...
X