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)
ResourceDigestManager
getDigest
in interface ResourceDigestManager
public boolean requiresDigest(Resource resource)
ResourceDigestManager
requiresDigest
in interface ResourceDigestManager
ResourceDigestGenerator.requiresDigest(String)
public void addInvalidationListener(InvalidationListener listener)
InvalidationEventHub
addInvalidationListener
in interface InvalidationEventHub
public void addInvalidationCallback(Runnable callback)
InvalidationEventHub
addInvalidationCallback
in interface InvalidationEventHub
public void clearOnInvalidation(Map<?,?> map)
InvalidationEventHub
clearOnInvalidation
in interface InvalidationEventHub
5.6.3 - Copyright © 2003-2021 The Apache Software Foundation.