Class StaticResourceVersion
- java.lang.Object
-
- org.apache.wicket.request.resource.caching.version.StaticResourceVersion
-
- All Implemented Interfaces:
IResourceVersion
public class StaticResourceVersion extends java.lang.Object implements IResourceVersion
provides a static version string for all package resources- Since:
- 1.5
- Author:
- Peter Ertl
-
-
Constructor Summary
Constructors Constructor Description StaticResourceVersion(java.lang.String version)create static version provider
-
Method Summary
All Methods Instance Methods Concrete 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
public java.lang.String getVersion(IStaticCacheableResource resource)
Description copied from interface:IResourceVersionget unique string identifying the version of the resource- Specified by:
getVersionin interfaceIResourceVersion- Parameters:
resource- cacheable resource- Returns:
- unique version string or
nullif version string could not be calculated
-
getVersionPattern
public java.util.regex.Pattern getVersionPattern()
Description copied from interface:IResourceVersiona pattern that matches returned versions- Specified by:
getVersionPatternin interfaceIResourceVersion- Returns:
- a pattern or
nullif no pattern is available
-
-