Class CachingResourceTransformer

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

public class CachingResourceTransformer extends 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, and otherwise delegates to the resolver chain and saves the result in the cache.
Since:
4.1
Author:
Rossen Stoyanchev
  • Constructor Details

    • CachingResourceTransformer

      public CachingResourceTransformer(Cache cache)
    • CachingResourceTransformer

      public CachingResourceTransformer(CacheManager cacheManager, String cacheName)
  • Method Details