public class StaticResourceVersion extends Object implements IResourceVersion
| Constructor and Description |
|---|
StaticResourceVersion(String version)
create static version provider
|
| 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 StaticResourceVersion(String version)
version - static version string to deliver for all queries resourcespublic String getVersion(IStaticCacheableResource resource)
IResourceVersiongetVersion in interface IResourceVersionresource - cacheable resourcenull
if version string could not be calculatedpublic Pattern getVersionPattern()
IResourceVersiongetVersionPattern in interface IResourceVersionnull if no pattern
is availableCopyright © 2006–2021 Apache Software Foundation. All rights reserved.