类 FixedVersionStrategy
java.lang.Object
cn.taketoday.web.resource.AbstractVersionStrategy
cn.taketoday.web.resource.FixedVersionStrategy
- 所有已实现的接口:
VersionPathStrategy,VersionStrategy
A
VersionStrategy that relies on a fixed version applied as a request
path prefix, e.g. reduced SHA, version name, release date, etc.
This is useful for example when ContentVersionStrategy cannot be
used such as when using JavaScript module loaders which are in charge of
loading the JavaScript resources and need to know their relative paths.
- 从以下版本开始:
- 4.0
- 作者:
- Brian Clozel, Rossen Stoyanchev
- 另请参阅:
-
嵌套类概要
从类继承的嵌套类/接口 cn.taketoday.web.resource.AbstractVersionStrategy
AbstractVersionStrategy.FileNameVersionPathStrategy, AbstractVersionStrategy.PrefixVersionPathStrategy -
字段概要
字段从类继承的字段 cn.taketoday.web.resource.AbstractVersionStrategy
logger -
构造器概要
构造器构造器说明FixedVersionStrategy(String version) Create a new FixedVersionStrategy with the given version string. -
方法概要
修饰符和类型方法说明getResourceVersion(cn.taketoday.core.io.Resource resource) Determine the version for the given resource.从类继承的方法 cn.taketoday.web.resource.AbstractVersionStrategy
addVersion, extractVersion, getVersionPathStrategy, removeVersion
-
字段详细资料
-
version
-
-
构造器详细资料
-
FixedVersionStrategy
Create a new FixedVersionStrategy with the given version string.- 参数:
version- the fixed version string to use
-
-
方法详细资料
-
getResourceVersion
从接口复制的说明:VersionStrategyDetermine the version for the given resource.- 参数:
resource- the resource to check- 返回:
- the version (never
null)
-