Modifying JAX-RS resources during deployment using ModelProcessor

Sometimes, you may want to modify the existing JAX-RS resources during deployment to meet the specific business conditions set by customers. For instance, consider a scenario where you want to add additional APIs to return the JSON schema, which describes the content structure for all the REST resources that your application exposes. Further, there may be scenarios where you may want to change the entire resource method implementation itself to meet the requirements of some of the customers. In this section, we will learn how to address such use case requirements with the Jersey framework.

The Jersey framework allows you to modify or enhance JAX-RS resources during deployment by ...

Get RESTful Java Web Services - Second Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.