Obtaining information about URIs using UriInfo objects
Using Java API for
RESTful Web Services (JAX-RS), you can use the UriInfo object to access
request headers. The UriInfo object provides methods to enable you
to find or build URI information of a request.
Evaluating request preconditions using Request objects
Using Java API for
RESTful Web Services (JAX-RS), you can use the Request object to access
request headers. The Request object provides methods for evaluating
preconditions and for selecting the optimal response variant based
on the request headers.