org.springframework.web.servlet.resource.ResourceTransformer that checks a
org.springframework.cache.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.
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Cache | |
| public Resource | transform(HttpServletRequest
the current request request, Resource the resource to transform resource, ResourceTransformerChain the chain of remaining transformers to delegate to transformerChain)Implements org. Transform the given resource. |
| cache | back to summary |
|---|---|
| private final Cache cache | |
| logger | back to summary |
|---|---|
| private static final Log logger | |
| CachingResourceTransformer | back to summary |
|---|---|
| public CachingResourceTransformer(Cache cache) | |
| CachingResourceTransformer | back to summary |
|---|---|
| public CachingResourceTransformer(CacheManager cacheManager, String cacheName) | |
| getCache | back to summary |
|---|---|
| public Cache getCache() Return the configured | |
| transform | back to summary |
|---|---|
| public Resource transform(HttpServletRequest request, Resource resource, ResourceTransformerChain transformerChain) throws IOException Implements org. Doc from org. Transform the given resource.
| |