| java.lang.Object org.w3c.www.protocol.http.cache.CacheValidator org.w3c.www.protocol.http.cache.SimpleCacheValidator
All known Subclasses: org.w3c.www.protocol.http.cache.push.SimplePushCacheValidator,
checkStaleness | public boolean checkStaleness(CachedResource cr)(Code) | | Check if the request is stale or not
a boolean, false if the resource is still validtrue it if needs a revalidation. |
isValid | public boolean isValid(CachedResource cr, Request request)(Code) | | Is the currently cached version usable to answer the given request ?
A boolean, true if we are able to generatea valid answer to this request by the perform method,false otherwise (the resource needs to be refreshed). |
revalidateResource | public void revalidateResource(CachedResource cr, Request request, Reply reply)(Code) | | reset all the ages after a revalidation
cr, the CachedResource we are upgrading. request, the Request reply, the Reply |
updateExpirationInfo | public void updateExpirationInfo(CachedResource cr, Request request, Reply reply)(Code) | | Update the expiration information on a cached resource, even if it was
not used. Note that it is the right place to update also information
for other cache behaviour used by the sweeper.
cr, the CachedResource we are upgrading. request, the Request reply, the Reply |
|
|