How to use the @Context annotation The JAX-RS API provides a very handy mechanism to inject a range of useful resources, such as HTTP Headers, into your endpoint. The @Context annotation is an all purpose annotation that injects instances of the following objects: HttpHeaders -> HTTP header parameters and values UriInfo -> Captures path variables and query parameters ...