November 2017
Intermediate to advanced
420 pages
10h 29m
English
The JAX-RS runtime offers different context objects, which can be used for accessing information associated with the resource class, operating environment, and so on. You may find various context objects that hold information associated with the URI path, request, HTTP header, security, and so on. Some of these context objects also provide the utility methods for dealing with the request and response content. JAX-RS allows you to reference the desired context objects in the code via dependency injection. JAX-RS provides the @javax.ws.rs.Context annotation, which injects the matching context object into the target field. You can specify the @Context annotation on a class field, a resource class bean property (the getter method for ...