@Component(value="blVersionResourceResolver")
public class BroadleafVersionResourceResolver
extends org.springframework.web.servlet.resource.VersionResourceResolver
implements org.springframework.core.Ordered
VersionResourceResolver but adds in support to disable with 
 environment properties.
 
 Before delegating to VersionResourceResolver, first checks to see if the request is for 
 a Broadleaf bundle.   If so, skips versioning since bundles are already versioned.
 
  | Modifier and Type | Field and Description | 
|---|---|
| protected ResourceBundlingService | bundlingService | 
| protected static org.apache.commons.logging.Log | LOG | 
| protected boolean | resourceVersioningEnabled | 
| protected Map<String,org.springframework.web.servlet.resource.VersionStrategy> | versionStrategyMap | 
| Constructor and Description | 
|---|
| BroadleafVersionResourceResolver() | 
| Modifier and Type | Method and Description | 
|---|---|
| int | getOrder() | 
| void | initIt() | 
| 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) | 
addContentVersionStrategy, addFixedVersionStrategy, addVersionStrategy, getStrategyForPath, getStrategyMap, setStrategyMapprotected static final org.apache.commons.logging.Log LOG
@Value(value="${resource.versioning.enabled:true}")
protected boolean resourceVersioningEnabled
protected ResourceBundlingService bundlingService
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.VersionResourceResolverprotected 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.VersionResourceResolverpublic int getOrder()
getOrder in interface org.springframework.core.Orderedpublic void setOrder(int order)
@PostConstruct public void initIt() throws Exception
ExceptionCopyright © 2020. All rights reserved.