|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.broadleafcommerce.common.file.service.StaticAssetPathServiceImpl
@Service(value="blStaticAssetPathService") public class StaticAssetPathServiceImpl
| Field Summary | |
|---|---|
protected String |
staticAssetEnvironmentSecureUrlPrefix
|
protected String |
staticAssetEnvironmentUrlPrefix
|
protected String |
staticAssetUrlPrefix
|
| Constructor Summary | |
|---|---|
StaticAssetPathServiceImpl()
|
|
| Method Summary | |
|---|---|
String |
convertAssetPath(String assetPath,
String contextPath,
boolean secureRequest)
This method will take in an assetPath (think image url) and prepend the staticAssetUrlPrefix if one exists. |
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 |
setStaticAssetEnvironmentSecureUrlPrefix(String staticAssetEnvironmentSecureUrlPrefix)
|
void |
setStaticAssetEnvironmentUrlPrefix(String staticAssetEnvironmentUrlPrefix)
Sets the environment url prefix. |
void |
setStaticAssetUrlPrefix(String staticAssetUrlPrefix)
Sets the static asset url prefix |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
@Value(value="${asset.server.url.prefix.internal}")
protected String staticAssetUrlPrefix
@Value(value="${asset.server.url.prefix}")
protected String staticAssetEnvironmentUrlPrefix
@Value(value="${asset.server.url.prefix.secure}")
protected String staticAssetEnvironmentSecureUrlPrefix
| Constructor Detail |
|---|
public StaticAssetPathServiceImpl()
| Method Detail |
|---|
public String convertAssetPath(String assetPath,
String contextPath,
boolean secureRequest)
convertAssetPath in interface StaticAssetPathServiceassetPath - - 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 https
org.broadleafcommerce.common.file.service.StaticAssetService#getStaticAssetUrlPrefix(),
org.broadleafcommerce.common.file.service.StaticAssetService#getStaticAssetEnvironmentUrlPrefix()public String getStaticAssetUrlPrefix()
StaticAssetPathService
getStaticAssetUrlPrefix in interface StaticAssetPathServicepublic void setStaticAssetUrlPrefix(String staticAssetUrlPrefix)
StaticAssetPathService
setStaticAssetUrlPrefix in interface StaticAssetPathServicepublic String getStaticAssetEnvironmentUrlPrefix()
StaticAssetPathService
getStaticAssetEnvironmentUrlPrefix in interface StaticAssetPathServicepublic void setStaticAssetEnvironmentUrlPrefix(String staticAssetEnvironmentUrlPrefix)
StaticAssetPathService
setStaticAssetEnvironmentUrlPrefix in interface StaticAssetPathServicepublic String getStaticAssetEnvironmentSecureUrlPrefix()
StaticAssetPathService
getStaticAssetEnvironmentSecureUrlPrefix in interface StaticAssetPathServicepublic void setStaticAssetEnvironmentSecureUrlPrefix(String staticAssetEnvironmentSecureUrlPrefix)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||