public class ResourceDigestManagerImpl extends Object implements ResourceDigestManager, InvalidationListener
Constructor and Description |
---|
ResourceDigestManagerImpl(ResourceDigestGenerator digestGenerator,
ResourceChangeTracker resourceChangeTracker) |
Modifier and Type | Method and Description |
---|---|
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).
|
String |
getDigest(Resource resource)
Returns the digest for the given path.
|
long |
getTimeModified(Resource resource) |
void |
listenForInvalidations() |
void |
objectWasInvalidated()
Invoked to indicate that some object is invalid.
|
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(ResourceDigestGenerator digestGenerator, ResourceChangeTracker resourceChangeTracker)
@PostInjection public void listenForInvalidations()
public String getDigest(Resource resource)
ResourceDigestManager
getDigest
in interface ResourceDigestManager
public long getTimeModified(Resource resource)
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 objectWasInvalidated()
InvalidationListener
objectWasInvalidated
in interface InvalidationListener
Copyright © 2003-2012 The Apache Software Foundation.