Package com.aquima.web.util
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 Summary
Constructors Constructor Description AbstractResourcesPathHelper(org.springframework.web.util.UriComponentsBuilder base, ResourceUrlConfiguration resourceUrlConfiguration)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getCurrentWebResourcesPath(String path)
String
getHtmlResourceFullPath(String path)
String
getWebResourcesPath(String path)
-
-
-
Constructor Detail
-
AbstractResourcesPathHelper
public AbstractResourcesPathHelper(org.springframework.web.util.UriComponentsBuilder base, ResourceUrlConfiguration resourceUrlConfiguration)
-
-
Method Detail
-
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
-
-