public class RequestCycleCachedResourceVersion extends Object implements IResourceVersion
IResourceVersion
instance
for the lifetime of the current http request.Constructor and Description |
---|
RequestCycleCachedResourceVersion(IResourceVersion delegate)
create request-scoped resource provider cache
|
Modifier and Type | Method and Description |
---|---|
String |
getVersion(IStaticCacheableResource resource)
get unique string identifying the version of the resource
|
Pattern |
getVersionPattern()
a pattern that matches returned versions
|
public RequestCycleCachedResourceVersion(IResourceVersion delegate)
delegate
- resource version provider to cachepublic String getVersion(IStaticCacheableResource resource)
IResourceVersion
getVersion
in interface IResourceVersion
resource
- cacheable resourcenull
if version string could not be calculatedpublic Pattern getVersionPattern()
IResourceVersion
getVersionPattern
in interface IResourceVersion
null
if no pattern
is availableCopyright © 2006–2022 Apache Software Foundation. All rights reserved.