@Component(value="blCacheResourceResolver")
public class BroadleafCachingResourceResolver
extends org.springframework.web.servlet.resource.CachingResourceResolver
implements org.springframework.core.Ordered
CachingResourceResolver but adds in support to disable with
environment properties.
| Modifier and Type | Field and Description |
|---|---|
protected static org.apache.commons.logging.Log |
LOG |
static String |
RESOLVED_RESOURCE_CACHE_KEY_PREFIX_NULL |
static String |
RESOLVED_URL_PATH_CACHE_KEY_PREFIX_NULL |
protected boolean |
resourceCachingEnabled |
RESOLVED_RESOURCE_CACHE_KEY_PREFIX, RESOLVED_URL_PATH_CACHE_KEY_PREFIX| Constructor and Description |
|---|
BroadleafCachingResourceResolver(org.springframework.cache.Cache cache) |
BroadleafCachingResourceResolver(org.springframework.cache.CacheManager cacheManager) |
| Modifier and Type | Method and Description |
|---|---|
int |
getOrder() |
protected org.springframework.core.io.Resource |
resolveResourceInternal(javax.servlet.http.HttpServletRequest request,
String requestPath,
List<? extends org.springframework.core.io.Resource> locations,
org.springframework.web.servlet.resource.ResourceResolverChain chain) |
protected String |
resolveUrlPathInternal(String resourceUrlPath,
List<? extends org.springframework.core.io.Resource> locations,
org.springframework.web.servlet.resource.ResourceResolverChain chain) |
void |
setOrder(int order) |
getCachepublic static final String RESOLVED_RESOURCE_CACHE_KEY_PREFIX_NULL
public static final String RESOLVED_URL_PATH_CACHE_KEY_PREFIX_NULL
protected static final org.apache.commons.logging.Log LOG
@Value(value="${resource.caching.enabled:true}")
protected boolean resourceCachingEnabled
@Autowired
public BroadleafCachingResourceResolver(@Qualifier(value="blSpringCacheManager")
org.springframework.cache.CacheManager cacheManager)
public BroadleafCachingResourceResolver(org.springframework.cache.Cache cache)
protected org.springframework.core.io.Resource resolveResourceInternal(javax.servlet.http.HttpServletRequest request,
String requestPath,
List<? extends org.springframework.core.io.Resource> locations,
org.springframework.web.servlet.resource.ResourceResolverChain chain)
resolveResourceInternal in class org.springframework.web.servlet.resource.CachingResourceResolverprotected String resolveUrlPathInternal(String resourceUrlPath, List<? extends org.springframework.core.io.Resource> locations, org.springframework.web.servlet.resource.ResourceResolverChain chain)
resolveUrlPathInternal in class org.springframework.web.servlet.resource.CachingResourceResolverpublic int getOrder()
getOrder in interface org.springframework.core.Orderedpublic void setOrder(int order)
Copyright © 2015. All rights reserved.