org.springframework.web.reactive.resource

Class CachingResourceTransformer

  • java.lang.Object
    • org.springframework.web.reactive.resource.CachingResourceTransformer
  • All Implemented Interfaces:
    ResourceTransformer


    public class CachingResourceTransformer
    extends java.lang.Object
    implements ResourceTransformer
    A ResourceTransformer that checks a Cache to see if a previously transformed resource exists in the cache and returns it if found, or otherwise delegates to the resolver chain and caches the result.
    Since:
    5.0
    Author:
    Rossen Stoyanchev
    • Constructor Detail

      • CachingResourceTransformer

        public CachingResourceTransformer(Cache cache)
      • CachingResourceTransformer

        public CachingResourceTransformer(CacheManager cacheManager,
                                          java.lang.String cacheName)
    • Method Detail

      • getCache

        public Cache getCache()
        Return the configured Cache.