类 ContentVersionStrategy
java.lang.Object
cn.taketoday.web.resource.AbstractVersionStrategy
cn.taketoday.web.resource.ContentVersionStrategy
- 所有已实现的接口:
VersionPathStrategy,VersionStrategy
A
VersionStrategy that calculates an Hex MD5 hashes from the content
of the resource and appends it to the file name, e.g.
"styles/main-e36d2e05253c6c7085a91522ce43a0b4.css".- 从以下版本开始:
- 4.0
- 作者:
- Brian Clozel, Rossen Stoyanchev
- 另请参阅:
-
嵌套类概要
从类继承的嵌套类/接口 cn.taketoday.web.resource.AbstractVersionStrategy
AbstractVersionStrategy.FileNameVersionPathStrategy, AbstractVersionStrategy.PrefixVersionPathStrategy -
字段概要
从类继承的字段 cn.taketoday.web.resource.AbstractVersionStrategy
logger -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明getResourceVersion(cn.taketoday.core.io.Resource resource) Determine the version for the given resource.从类继承的方法 cn.taketoday.web.resource.AbstractVersionStrategy
addVersion, extractVersion, getVersionPathStrategy, removeVersion
-
构造器详细资料
-
ContentVersionStrategy
public ContentVersionStrategy()
-
-
方法详细资料
-
getResourceVersion
从接口复制的说明:VersionStrategyDetermine the version for the given resource.- 参数:
resource- the resource to check- 返回:
- the version (never
null)
-