September 2015
Intermediate to advanced
354 pages
8h 27m
English
Input validation is the process of ensuring the completeness and sanity of input data before posting it to the underlying data source. It is considered as an outer, defensive perimeter for your RESTful web APIs. JAX-RS 2.0 lets you use bean validation to declaratively specify the validation constraints on an object model. If you need a quick brush up on bean validation support for the JAX-RS resource class, refer to the Introducing validations in JAX-RS applications section in Chapter 4, Advanced Features in the JAX-RS API.
You can log input validation failures for business critical APIs. This may help you detect malformed and malicious input to the application.
Read now
Unlock full access