Class AbstractResourcesPathHelper

java.lang.Object
com.aquima.web.util.AbstractResourcesPathHelper
All Implemented Interfaces:
PathHelper
Direct Known Subclasses:
ResourcesLinkHelper, ResourcesRedirectHelper

public abstract class AbstractResourcesPathHelper extends Object implements PathHelper
  • Constructor Details

    • AbstractResourcesPathHelper

      public AbstractResourcesPathHelper(org.springframework.web.util.UriComponentsBuilder base, ResourceUrlConfiguration resourceUrlConfiguration)
  • Method Details

    • getWebResourcesPath

      public final String getWebResourcesPath(String path)
      Parameters:
      path - The path relative to the web resources base path. "" will return the web resources base path (including trailing slash)
      Returns:
      the full (including cache version key) path for a web resource
    • getCurrentWebResourcesPath

      public final String getCurrentWebResourcesPath(String path)
      Parameters:
      path - The path relative to the current web resources base path. "" will return the current web resources base path (including trailing slash)
      Returns:
      the full path for a web resource
    • getHtmlResourceFullPath

      public final String getHtmlResourceFullPath(String path)
      Parameters:
      path - The full path to the HTML resource.
      Returns:
      the full path for a HTML resource.