Class BLCSystemPropertyResourceResolver

java.lang.Object
org.springframework.web.servlet.resource.AbstractResourceResolver
org.broadleafcommerce.common.web.resource.resolver.BLCSystemPropertyResourceResolver
All Implemented Interfaces:
org.springframework.core.Ordered, org.springframework.web.servlet.resource.ResourceResolver

@Component("blSystemPropertyJSResolver") public class BLCSystemPropertyResourceResolver extends org.springframework.web.servlet.resource.AbstractResourceResolver implements org.springframework.core.Ordered
A ResourceResolver that replaces system properties in BLC-system-property.js
Since:
4.0, Broadleaf 4.0
Author:
Reggie Cole, Brian Polster
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected static final String
     
    protected static final Charset
     
    protected static final org.apache.commons.logging.Log
     

    Fields inherited from class org.springframework.web.servlet.resource.AbstractResourceResolver

    logger

    Fields inherited from interface org.springframework.core.Ordered

    HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected String
    addVersion(String requestPath, String version)
     
    protected org.springframework.core.io.Resource
    convertResource(org.springframework.core.io.Resource origResource, String resourceFileName)
     
    int
     
    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)
     
    protected String
    resolveUrlPathInternal(String resourceUrlPath, List<? extends org.springframework.core.io.Resource> locations, org.springframework.web.servlet.resource.ResourceResolverChain chain)
     
    void
    setOrder(int order)
     

    Methods inherited from class org.springframework.web.servlet.resource.AbstractResourceResolver

    resolveResource, resolveUrlPath

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • LOG

      protected static final org.apache.commons.logging.Log LOG
    • BLC_SYSTEM_PROPERTY_FILE

      protected static final String BLC_SYSTEM_PROPERTY_FILE
      See Also:
    • DEFAULT_CHARSET

      protected static final Charset DEFAULT_CHARSET
  • Constructor Details

    • BLCSystemPropertyResourceResolver

      public BLCSystemPropertyResourceResolver()
  • 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:
      resolveUrlPathInternal in class org.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:
      resolveResourceInternal in class org.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

      protected String addVersion(String requestPath, String version)
    • getOrder

      public int getOrder()
      Specified by:
      getOrder in interface org.springframework.core.Ordered
    • setOrder

      public void setOrder(int order)