|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.w3c.www.protocol.http.cache.CacheValidator
public abstract class CacheValidator
Constructor Summary | |
---|---|
CacheValidator()
|
Method Summary | |
---|---|
abstract boolean |
checkStaleness(CachedResource cr)
Check if the request is stale or not |
void |
initialize(CacheFilter filter)
initialize this validator |
abstract boolean |
isValid(CachedResource cr,
Request request)
Is the currently cached version usable to answer the given request ? |
abstract void |
revalidateResource(CachedResource cr,
Request request,
Reply reply)
reset all the ages after a revalidation |
abstract void |
updateExpirationInfo(CachedResource cr,
Request request,
Reply reply)
Update the expiration information on a cached resource, even if it was not used. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CacheValidator()
Method Detail |
---|
public abstract boolean checkStaleness(CachedResource cr)
public abstract boolean isValid(CachedResource cr, Request request)
perform
method,
false otherwise (the resource needs to be refreshed).public abstract void updateExpirationInfo(CachedResource cr, Request request, Reply reply)
cr,
- the CachedResource we are upgrading.request,
- the Requestreply,
- the Replypublic abstract void revalidateResource(CachedResource cr, Request request, Reply reply)
cr,
- the CachedResource we are upgrading.request,
- the Requestreply,
- the Replypublic void initialize(CacheFilter filter)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |