|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ResourceCache
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. |
StreamableResource |
getStreamableResource(Resource resource)
Returns the contents of the resource |
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. |
| Methods inherited from interface org.apache.tapestry5.services.InvalidationEventHub |
|---|
addInvalidationListener |
| Method Detail |
|---|
boolean requiresDigest(Resource resource)
resource -
ResourceDigestGenerator.requiresDigest(String)StreamableResource getStreamableResource(Resource resource)
resource -
String getDigest(Resource resource)
resource -
long getTimeModified(Resource resource)
resource -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||