|
|
|
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.torweg.pulse.service.IntelliCache
public final class IntelliCache
the pulse IntelliCache allows private caching of dynamic
pages as long as the ServiceSession associated with the current
request is still stateless.
IntelliCache is based upon ETags and can be configured in the
ServiceRequest configuration in WEB-INF/conf.
| Method Summary | |
|---|---|
static void |
addCachingETag(ServiceRequest request)
sets an ETag to the underlying HTTP response, if the session has no state and the ETag max age is larger than zero milliseconds. |
static boolean |
validateCachingETag(ServiceRequest request)
checks whether the current If-None-Match header allows for a 304 Not Modified response and sends it, if appropriate. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static boolean validateCachingETag(ServiceRequest request)
request - the current request
true, if the a 304 Not Modified response has
been sent. Otherwise false.public static void addCachingETag(ServiceRequest request)
The ETag is constructed of
Command.getETagValue(), the current
system time for validity checking (System.currentTimeMillis())
and the hashcode of the "user-agent" request header.
request - the current requestServiceSession.hasState(), ServiceRequest.getIntelliCacheMaxAge()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||