The use of web page cache for service that use complet processis to generate an answer with data that doen't change often. When a request arrive for this service, if it has already been cached, the cached page is return with no service processing. To register a service, you must use a WebPageCacheServiceStruct. A default implementation is provided. This structure define cache properties and store cached page.
When registering a service register for a spcific event that will signal when the cache has to be cleared. A service can register the same WebPageCacheServiceStruct for several event. When an event is send, all cached page of all service registered for this event is validated with the WebPageCacheServiceStruct implementation.
Definition at line 56 of file WebPageCacheManager.java.
Public Member Functions | |
void | registerService (WebPageCacheServiceStruct service, WebPageCacheEvent event) |
byte[] | getCachedPage (HttpServletRequest req, Service service) |
void | setCachedPage (HttpServletRequest req, byte[] cachedData, Service service) |
void | sendCacheEvent (WebPageCacheEvent event) |
Static Public Member Functions | |
static WebPageCacheManager | getManager () |