public class QueryStringCacheKeyPartGenerator extends Object implements CacheKeyPartGenerator
| Modifier and Type | Field and Description |
|---|---|
protected static Pattern |
QUERYSTRING_REGEXP |
| Constructor and Description |
|---|
QueryStringCacheKeyPartGenerator() |
| Modifier and Type | Method and Description |
|---|---|
String |
getKey() |
String |
getValue(Resource resource,
RenderContext renderContext,
Properties properties)
Get value of this given key part.
|
String |
replacePlaceholders(RenderContext renderContext,
String keyPart)
Replace placeholders in the keyPart to construct the final key used to store the fragment in the cache.
|
protected static final Pattern QUERYSTRING_REGEXP
public String getKey()
getKey in interface CacheKeyPartGeneratorpublic String getValue(Resource resource, RenderContext renderContext, Properties properties)
CacheKeyPartGeneratorgetValue in interface CacheKeyPartGeneratorresource - the current rendered resourcerenderContext - the current renderContextproperties - the current fragment propertiespublic String replacePlaceholders(RenderContext renderContext, String keyPart)
CacheKeyPartGeneratorreplacePlaceholders in interface CacheKeyPartGeneratorrenderContext - the current render contextkeyPart - the key part, a value returned by the getValue(...) functionCopyright © 2004–2020 Jahia Solutions Group SA. All rights reserved.