Class FixedVersionStrategy
java.lang.Object
org.springframework.web.reactive.resource.AbstractPrefixVersionStrategy
org.springframework.web.reactive.resource.FixedVersionStrategy
- All Implemented Interfaces:
- VersionStrategy
A 
VersionStrategy that relies on a fixed version applied as a request
path prefix, for example, 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.
- Since:
- 5.0
- Author:
- Rossen Stoyanchev, Brian Clozel
- See Also:
- 
Field SummaryFields inherited from class AbstractPrefixVersionStrategylogger
- 
Constructor SummaryConstructorsConstructorDescriptionFixedVersionStrategy(String version) Create a new FixedVersionStrategy with the given version string.
- 
Method SummaryModifier and TypeMethodDescriptionreactor.core.publisher.Mono<String> getResourceVersion(Resource resource) Determine the version for the given resource.Methods inherited from class AbstractPrefixVersionStrategyaddVersion, extractVersion, removeVersion
- 
Constructor Details- 
FixedVersionStrategyCreate a new FixedVersionStrategy with the given version string.- Parameters:
- version- the fixed version string to use
 
 
- 
- 
Method Details- 
getResourceVersionDescription copied from interface:VersionStrategyDetermine the version for the given resource.- Parameters:
- resource- the resource to check
- Returns:
- the resource version
 
 
-