public class ResourceDigestManagerImpl extends Object implements ResourceDigestManager
| Constructor and Description |
|---|
ResourceDigestManagerImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
addInvalidationCallback(Runnable callback)
Adds a callback that is invoked when an underlying tracked resource has changed.
|
void |
addInvalidationListener(InvalidationListener listener)
Adds a listener, who needs to know when an underlying resource of a given category has changed (so that the
receiver may discard any cached data that may have been invalidated).
|
void |
clearOnInvalidation(Map<?,?> map)
Adds a callback that clears the map.
|
String |
getDigest(Resource resource)
Returns the digest for the given path.
|
boolean |
requiresDigest(Resource resource)
Returns true if the path requires that the client URL for the resource include a digest to validate that the
client is authorized to access the resource.
|
public ResourceDigestManagerImpl()
public String getDigest(Resource resource)
ResourceDigestManagergetDigest in interface ResourceDigestManagerpublic boolean requiresDigest(Resource resource)
ResourceDigestManagerrequiresDigest in interface ResourceDigestManagerResourceDigestGenerator.requiresDigest(String)public void addInvalidationListener(InvalidationListener listener)
InvalidationEventHubaddInvalidationListener in interface InvalidationEventHubpublic void addInvalidationCallback(Runnable callback)
InvalidationEventHubaddInvalidationCallback in interface InvalidationEventHubpublic void clearOnInvalidation(Map<?,?> map)
InvalidationEventHubclearOnInvalidation in interface InvalidationEventHub5.6.4 - Copyright © 2003-2021 The Apache Software Foundation.