Interface VersionStrategy
- All Superinterfaces:
VersionPathStrategy
- All Known Implementing Classes:
AbstractVersionStrategy,ContentVersionStrategy,FixedVersionStrategy
public interface VersionStrategy extends VersionPathStrategy
An extension ofVersionPathStrategythat adds a method to determine the actual version of aResource.- Since:
- 4.1
- Author:
- Brian Clozel, Rossen Stoyanchev
- See Also:
VersionResourceResolver
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetResourceVersion(Resource resource)Determine the version for the given resource.Methods inherited from interface org.springframework.web.servlet.resource.VersionPathStrategy
addVersion, extractVersion, removeVersion
Method Detail
getResourceVersion
String getResourceVersion(Resource resource)
Determine the version for the given resource.- Parameters:
resource- the resource to check- Returns:
- the version (never
null)