public interface StaticAssetPathService
Modifier and Type | Method and Description |
---|---|
String |
convertAllAssetPathsInContent(String content,
boolean secureRequest)
This method will take in a content string (e.g.
|
String |
convertAssetPath(String assetPath,
String contextPath,
boolean secureRequest)
This method will take in an assetPath (think image url) and convert it if
the value contains the asseturlprefix.
|
String |
getStaticAssetEnvironmentSecureUrlPrefix()
Returns the secure value of the environment url prefix (e.g.
|
String |
getStaticAssetEnvironmentUrlPrefix()
Returns the value configured for the current environment
for the static asset url prefix.
|
String |
getStaticAssetUrlPrefix()
Returns the value configured to mark an item as a static URL.
|
void |
setStaticAssetEnvironmentUrlPrefix(String prefix)
Sets the environment url prefix.
|
void |
setStaticAssetUrlPrefix(String prefix)
Sets the static asset url prefix
|
String convertAllAssetPathsInContent(String content, boolean secureRequest)
content
- - The content string to rewrite if it contains a cms managed assetsecureRequest
- - True if the request is being served over httpsString convertAssetPath(String assetPath, String contextPath, boolean secureRequest)
assetPath
- - The path to rewrite if it is a cms managed assetcontextPath
- - The context path of the web application (if applicable)secureRequest
- - True if the request is being served over httpsStaticAssetService#getStaticAssetUrlPrefix()
,
StaticAssetService#getStaticAssetEnvironmentUrlPrefix()
String getStaticAssetUrlPrefix()
void setStaticAssetUrlPrefix(String prefix)
prefix
- String getStaticAssetEnvironmentUrlPrefix()
void setStaticAssetEnvironmentUrlPrefix(String prefix)
prefix
- String getStaticAssetEnvironmentSecureUrlPrefix()
Copyright © 2022. All rights reserved.