What is the Jersey model processor and how it works?

When you deploy a JAX-RS application into a Jersey-based container, the Jersey runtime generates the org.glassfish.jersey.server.mode.ResourceModel instance to store all the root REST resources registered in the application. Jersey allows you to enhance the generated resource model via the org.glassfish.jersey.server.model.ModelProcessor providers. You can build your own model processor providers by implementing the ModelProcessor interface. This implementation can have the logic to enhance the current resource model by adding additional methods or resources. For instance, you can build a model processor to inject support for the HTTP OPTION method on every REST resource during deployment.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.119.253.31