Interface IPathCacheService
-
- All Known Implementing Classes:
PathCacheService
public interface IPathCacheServiceService interface for XPage path caching
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringBEAN_NAMEBean name
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.StringgetFromCache(java.lang.String strKey)Get the path html from cachejava.lang.StringgetKey(java.lang.String strXPageName, int nMode, java.lang.String strTitlesUrls, javax.servlet.http.HttpServletRequest request)Constructs a cache keyjava.lang.StringgetKey(java.lang.String strXPageName, int nMode, javax.servlet.http.HttpServletRequest request)Constructs a cache keyvoidputInCache(java.lang.String strKey, java.lang.String path)Put a path in cache
-
-
-
Field Detail
-
BEAN_NAME
static final java.lang.String BEAN_NAME
Bean name- See Also:
- Constant Field Values
-
-
Method Detail
-
getKey
java.lang.String getKey(java.lang.String strXPageName, int nMode, javax.servlet.http.HttpServletRequest request)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
java.lang.String getKey(java.lang.String strXPageName, int nMode, java.lang.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
java.lang.String getFromCache(java.lang.String strKey)
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
void putInCache(java.lang.String strKey, java.lang.String path)Put a path in cache- Parameters:
strKey- the cache keypath- the path html
-
-