Class RequestCycleCachedResourceVersion
- java.lang.Object
-
- org.apache.wicket.request.resource.caching.version.RequestCycleCachedResourceVersion
-
- All Implemented Interfaces:
IResourceVersion
public class RequestCycleCachedResourceVersion extends Object implements IResourceVersion
Caches the results of a delegatingIResourceVersion
instance for the lifetime of the current http request.- Since:
- 1.5
- Author:
- Peter Ertl
-
-
Constructor Summary
Constructors Constructor Description RequestCycleCachedResourceVersion(IResourceVersion delegate)
create request-scoped resource provider cache
-
Method Summary
All Methods Instance Methods Concrete 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
-
-
-
Constructor Detail
-
RequestCycleCachedResourceVersion
public RequestCycleCachedResourceVersion(IResourceVersion delegate)
create request-scoped resource provider cache- Parameters:
delegate
- resource version provider to cache
-
-
Method Detail
-
getVersion
public String getVersion(IStaticCacheableResource resource)
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
public Pattern 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
-
-