Class LastModifiedResourceVersion
java.lang.Object
org.apache.wicket.request.resource.caching.version.LastModifiedResourceVersion
- All Implemented Interfaces:
IResourceVersion
Uses the last modified timestamp of a
IStaticCacheableResource
converted to milliseconds as a version string.- Since:
- 1.5
- Author:
- Peter Ertl
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetVersion
(IStaticCacheableResource resource) get unique string identifying the version of the resourcea pattern that matches returned versions
-
Constructor Details
-
LastModifiedResourceVersion
public LastModifiedResourceVersion()
-
-
Method Details
-
getVersion
Description copied from interface:IResourceVersion
get unique string identifying the version of the resource- Specified by:
getVersion
in interfaceIResourceVersion
- Parameters:
resource
- cacheable resource- Returns:
- unique version string or
null
if version string could not be calculated
-
getVersionPattern
Description copied from interface:IResourceVersion
a pattern that matches returned versions- Specified by:
getVersionPattern
in interfaceIResourceVersion
- Returns:
- a pattern or
null
if no pattern is available
-