| org.apache.tapestry.internal.services.ResourceCache
All known Subclasses: org.apache.tapestry.internal.services.ResourceCacheImpl,
ResourceCache | public interface ResourceCache extends InvalidationEventHub(Code) | | Caches information about resources on the classpath. In addition, acts as an invalidation hub for
any resources for which information is obtained (when any of the resources are changed,
invalidation listeners are notified so they can clear their caches).
|
Method Summary | |
String | getDigest(Resource resource) Returns the digest for the given path. | long | getTimeModified(Resource resource) Returns the time modified for the resource. | 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. |
getDigest | String getDigest(Resource resource)(Code) | | Returns the digest for the given path.
Parameters: resource - the digest, or null if the resource does not exist |
getTimeModified | long getTimeModified(Resource resource)(Code) | | Returns the time modified for the resource.
Parameters: resource - the date time modified for the path, or a negative value if the resource does notexist |
requiresDigest | boolean requiresDigest(Resource resource)(Code) | | 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.
Parameters: resource - true if digest is required for the resource See Also: ResourceDigestGenerator.requiresDigest(String) |
|
|