public class CacheKey extends Object
ResourceCache
class.Constructor and Description |
---|
CacheKey(Metacard metacard)
Constructor used for keys generated from a
Metacard only. |
CacheKey(Metacard metacard,
ResourceRequest resourceRequest)
Constructor used for keys generated from a
Metacard and ResourceRequest . |
Modifier and Type | Method and Description |
---|---|
String |
generateKey()
Generates a cache key based on the metacard (and optionally resource request) object provided
to the constructor.
|
public CacheKey(Metacard metacard, ResourceRequest resourceRequest)
Metacard
and ResourceRequest
.metacard
- metacard to use to generate the keyresourceRequest
- resource request object to use to generate the keypublic CacheKey(Metacard metacard)
Metacard
only. Will create a key that maps
to the metacard's default resource. To generate a key for other specific metacard resources,
use CacheKey(Metacard, ResourceRequest)
.metacard
- metacard to use to generate the keypublic String generateKey()
ResourceCache
lookupsThis work is licensed under a Creative Commons Attribution 4.0 International License.