org.openmobileis.services.cache
Interface WebPageCacheServiceStruct


public interface WebPageCacheServiceStruct

Title: OpenMobileIS project source
Description: Main manage to register a service that has its page cached. 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.

Since:
JDK 1.1
Version:
1.0.
Author:
Philippe Delrieu

Method Summary
 void addWebPage(java.util.Hashtable reqParam, byte[] cachedData)
           
 byte[] getResponseForRequest(java.util.Hashtable req)
           
 Service getService()
           
 void notifyCacheEvent(WebPageCacheEvent event)
           
 

Method Detail

addWebPage

public void addWebPage(java.util.Hashtable reqParam,
                       byte[] cachedData)

getResponseForRequest

public byte[] getResponseForRequest(java.util.Hashtable req)

getService

public Service getService()

notifyCacheEvent

public void notifyCacheEvent(WebPageCacheEvent event)


Copyright 2006 OpenMobileIS. All Rights Reserved.