Interface IPathCacheService
- All Known Implementing Classes:
PathCacheService
public interface IPathCacheService
Service interface for XPage path caching
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiongetFromCache(String strKey) Get the path html from cachegetKey(String strXPageName, int nMode, String strTitlesUrls, javax.servlet.http.HttpServletRequest request) Constructs a cache keyConstructs a cache keyvoidputInCache(String strKey, String path) Put a path in cache
-
Field Details
-
BEAN_NAME
Bean name- See Also:
-
-
Method Details
-
getKey
Constructs a cache key- Parameters:
strXPageName- the XPage namenMode- the moderequest- the request- Returns:
- the cache key, or
nullif for instance the cache is not enabled
-
getKey
String getKey(String strXPageName, int nMode, String strTitlesUrls, javax.servlet.http.HttpServletRequest request) Constructs a cache key- Parameters:
strXPageName- the XPage namenMode- the modestrTitlesUrls- list of links (url and titles)request- the request the request- Returns:
- the cache key, or
nullif for instance the cache is not enabled
-
getFromCache
Get the path html from cache- Parameters:
strKey- the cache key- Returns:
- the path html, or
nullif it's not in cache or the cache is not enabled
-
putInCache
Put a path in cache- Parameters:
strKey- the cache keypath- the path html
-