-
Nov 6th, 2011, 01:13 AM
#1
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
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules