@Component(value="blBLCJSUrlPathResolver")
public class BLCJSUrlPathResolver
extends org.springframework.web.servlet.resource.AbstractResourceResolver
implements org.springframework.core.Ordered
ResourceResolver
that replaces the //BLC-SERVLET-CONTEXT and //BLC-SITE-BASEURL"
tokens before serving the BLC.js file.
This component modifies the path and works in conjunction with the BLCJSResourceResolver
which loads the modified file.
The processes were split to allow for caching of the resource but not the URL path.Modifier and Type | Field and Description |
---|---|
protected static org.apache.commons.logging.Log |
LOG |
Constructor and Description |
---|
BLCJSUrlPathResolver() |
Modifier and Type | Method and Description |
---|---|
protected String |
addVersion(String requestPath,
String version) |
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) |
protected 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.AbstractResourceResolver
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.AbstractResourceResolver
public int getOrder()
getOrder
in interface org.springframework.core.Ordered
public void setOrder(int order)
Copyright © 2022. All rights reserved.