|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.tapestry5.internal.event.InvalidationEventHubImpl
org.apache.tapestry5.internal.services.ResourceCacheImpl
public class ResourceCacheImpl
| Constructor Summary | |
|---|---|
ResourceCacheImpl(ResourceDigestGenerator digestGenerator,
ClasspathURLConverter classpathURLConverter)
|
|
| Method Summary | |
|---|---|
void |
checkForUpdates()
Invoked to force the receiver to check for updates to whatever underlying resources it makes use of. |
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 class org.apache.tapestry5.internal.event.InvalidationEventHubImpl |
|---|
addInvalidationListener, fireInvalidationEvent |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.apache.tapestry5.services.InvalidationEventHub |
|---|
addInvalidationListener |
| Constructor Detail |
|---|
public ResourceCacheImpl(ResourceDigestGenerator digestGenerator,
ClasspathURLConverter classpathURLConverter)
| Method Detail |
|---|
public void checkForUpdates()
UpdateListener
checkForUpdates in interface UpdateListenerpublic String getDigest(Resource resource)
ResourceCache
getDigest in interface ResourceCachepublic long getTimeModified(Resource resource)
ResourceCache
getTimeModified in interface ResourceCachepublic boolean requiresDigest(Resource resource)
ResourceCache
requiresDigest in interface ResourceCacheResourceDigestGenerator.requiresDigest(String)public StreamableResource getStreamableResource(Resource resource)
ResourceCache
getStreamableResource in interface ResourceCache
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||