Class PreventCachingResourceFilterFactory

  • All Implemented Interfaces:
    com.sun.jersey.spi.container.ResourceFilterFactory

    public class PreventCachingResourceFilterFactory
    extends Object
    implements com.sun.jersey.spi.container.ResourceFilterFactory
    Sets Cache-Control HTTP headers which prevent caching of ALL responses from REST resources in the plugin, and forces revalidation when you come back to the page.

    Usage: instantiate in the plugin's spring context, like this:

    Since:
    5.10
    • Constructor Detail

      • PreventCachingResourceFilterFactory

        public PreventCachingResourceFilterFactory()
    • Method Detail

      • create

        public List<com.sun.jersey.spi.container.ResourceFilter> create​(com.sun.jersey.api.model.AbstractMethod abstractMethod)
        Specified by:
        create in interface com.sun.jersey.spi.container.ResourceFilterFactory