The recommended way how to validate objects in Java in general is to use standard Bean Validation APIs. Unfortunately, neither Jersey nor JAX-RS provides a BV integration at the moment, so you may need to invoke the BV Validator manually yourself. At least for now. There are some plans to add BV support to JAX-RS, but nothing is fleshed out at the moment.
Marek
On Oct 31, 2012, at 6:27 PM, ram <sriram.n83_at_gmail.com> wrote:
>
> I am using jersey servlet with JAXB pojo mapping feature. Jersey does some validation of types but I need to do more on the values. Are there any APIs or recommended ways to validate request objects? Thanks
>
>