The framework uses components that are called during request processing to provide functionality such as transactions, locking and caching. Custom annotations allow you to use this functionality in your service endpoints.

The JAXRSCachePostMatchRequestFilter, which implements request validation and locking, is executed once the resource method is selected, but before Jersey invokes the resource method. The JAXRSCacheResponseFilter, which is executed after a response is provided for a request, releases any locks, adds Etag headers to the response and provides caching. For information on Etag headers, refer to the Using Etags for Version Tracking section.

For detailed information on working with locking and caching refer to the Enabling Locking and Configuring Server-Side Caching, as well as the Working with Caching sections.


Copyright © 1997, 2017 Oracle and/or its affiliates. All rights reserved. Legal Notices