Interface IResourceVersion
-
- All Known Implementing Classes:
CachingResourceVersion
,LastModifiedResourceVersion
,MessageDigestResourceVersion
,RequestCycleCachedResourceVersion
,StaticResourceVersion
public interface IResourceVersion
Provides a version string for a cacheable resource specified byIStaticCacheableResource
the version string will be used as a distinguishing mark when rendering resources- Since:
- 1.5
- Author:
- Peter Ertl
- See Also:
QueryStringWithVersionResourceCachingStrategy
,FilenameWithVersionResourceCachingStrategy
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
getVersion(IStaticCacheableResource resource)
get unique string identifying the version of the resourcePattern
getVersionPattern()
a pattern that matches returned versions
-
-
-
Method Detail
-
getVersion
String getVersion(IStaticCacheableResource resource)
get unique string identifying the version of the resource- Parameters:
resource
- cacheable resource- Returns:
- unique version string or
null
if version string could not be calculated
-
getVersionPattern
Pattern getVersionPattern()
a pattern that matches returned versions- Returns:
- a pattern or
null
if no pattern is available
-
-