Interface IResourceVersion
-
- All Known Implementing Classes:
CachingResourceVersion,LastModifiedResourceVersion,MessageDigestResourceVersion,RequestCycleCachedResourceVersion,StaticResourceVersion
public interface IResourceVersionProvides a version string for a cacheable resource specified byIStaticCacheableResourcethe 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 java.lang.StringgetVersion(IStaticCacheableResource resource)get unique string identifying the version of the resourcejava.util.regex.PatterngetVersionPattern()a pattern that matches returned versions
-
-
-
Method Detail
-
getVersion
java.lang.String getVersion(IStaticCacheableResource resource)
get unique string identifying the version of the resource- Parameters:
resource- cacheable resource- Returns:
- unique version string or
nullif version string could not be calculated
-
getVersionPattern
java.util.regex.Pattern getVersionPattern()
a pattern that matches returned versions- Returns:
- a pattern or
nullif no pattern is available
-
-