Class BLCJSResourceResolver
java.lang.Object
org.springframework.web.servlet.resource.AbstractResourceResolver
org.broadleafcommerce.common.web.resource.resolver.BLCJSResourceResolver
- All Implemented Interfaces:
org.springframework.core.Ordered,org.springframework.web.servlet.resource.ResourceResolver
@Component("blBLCJSResolver")
public class BLCJSResourceResolver
extends org.springframework.web.servlet.resource.AbstractResourceResolver
implements org.springframework.core.Ordered
A
ResourceResolver that replaces the //BLC-SERVLET-CONTEXT and //BLC-SITE-BASEURL"
tokens before serving the BLC.js file.
Works in conjunction with BLCJSUrlPathResolver
- Since:
- 4.0, Broadleaf 4.0
- Author:
- Reggie Cole, Brian Polster
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final Charsetprotected static final org.apache.commons.logging.Logprotected static final PatternFields inherited from class org.springframework.web.servlet.resource.AbstractResourceResolver
loggerFields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringaddVersion(String requestPath, String version) protected org.springframework.core.io.ResourceconvertResource(org.springframework.core.io.Resource origResource, String resourceFileName) intgetOrder()protected org.springframework.core.io.ResourceresolveResourceInternal(jakarta.servlet.http.HttpServletRequest request, String requestPath, List<? extends org.springframework.core.io.Resource> locations, org.springframework.web.servlet.resource.ResourceResolverChain chain) protected StringresolveUrlPathInternal(String resourceUrlPath, List<? extends org.springframework.core.io.Resource> locations, org.springframework.web.servlet.resource.ResourceResolverChain chain) voidsetOrder(int order) Methods inherited from class org.springframework.web.servlet.resource.AbstractResourceResolver
resolveResource, resolveUrlPath
-
Field Details
-
LOG
protected static final org.apache.commons.logging.Log LOG -
DEFAULT_CHARSET
-
pattern
-
-
Constructor Details
-
BLCJSResourceResolver
public BLCJSResourceResolver()
-
-
Method Details
-
resolveUrlPathInternal
protected String resolveUrlPathInternal(String resourceUrlPath, List<? extends org.springframework.core.io.Resource> locations, org.springframework.web.servlet.resource.ResourceResolverChain chain) - Specified by:
resolveUrlPathInternalin classorg.springframework.web.servlet.resource.AbstractResourceResolver
-
resolveResourceInternal
protected org.springframework.core.io.Resource resolveResourceInternal(jakarta.servlet.http.HttpServletRequest request, String requestPath, List<? extends org.springframework.core.io.Resource> locations, org.springframework.web.servlet.resource.ResourceResolverChain chain) - Specified by:
resolveResourceInternalin classorg.springframework.web.servlet.resource.AbstractResourceResolver
-
convertResource
protected org.springframework.core.io.Resource convertResource(org.springframework.core.io.Resource origResource, String resourceFileName) throws IOException - Throws:
IOException
-
addVersion
-
getOrder
public int getOrder()- Specified by:
getOrderin interfaceorg.springframework.core.Ordered
-
setOrder
public void setOrder(int order)
-