public class PathCacheService extends AbstractCacheableService implements IPathCacheService, PageEventListener
BEAN_NAME
Modifier and Type | Method and Description |
---|---|
String |
getFromCache(String strKey)
Gets an object from the cache
|
String |
getKey(String strXPageName,
int nMode,
javax.servlet.http.HttpServletRequest request)
Constructs a cache key
|
String |
getKey(String strXPageName,
int nMode,
String strTitlesUrls,
javax.servlet.http.HttpServletRequest request)
Constructs a cache key
|
String |
getName()
Returns the Service name
|
void |
processPageEvent(PageEvent event)
Process a page event
|
void |
putInCache(String strKey,
String path)
Put a path in cache
|
clone, dispose, enableCache, getCache, getCacheSize, getInfos, getKeys, getMaxElements, getMemorySize, getTimeToLive, initCache, initCache, isCacheEnable, notifyElementEvicted, notifyElementExpired, notifyElementPut, notifyElementRemoved, notifyElementUpdated, notifyRemoveAll, putInCache, removeKey, resetCache
public String getName()
LuteceService
getName
in interface LuteceService
public String getKey(String strXPageName, int nMode, javax.servlet.http.HttpServletRequest request)
IPathCacheService
getKey
in interface IPathCacheService
strXPageName
- the XPage namenMode
- the moderequest
- the requestnull
if for instance the cache is not enabledpublic String getKey(String strXPageName, int nMode, String strTitlesUrls, javax.servlet.http.HttpServletRequest request)
IPathCacheService
getKey
in interface IPathCacheService
strXPageName
- the XPage namenMode
- the modestrTitlesUrls
- list of links (url and titles)request
- the request the requestnull
if for instance the cache is not enabledpublic String getFromCache(String strKey)
AbstractCacheableService
getFromCache
in interface IPathCacheService
getFromCache
in class AbstractCacheableService
strKey
- The key of the object to retrieve from the cachepublic void putInCache(String strKey, String path)
IPathCacheService
putInCache
in interface IPathCacheService
strKey
- the cache keypath
- the path htmlpublic void processPageEvent(PageEvent event)
PageEventListener
processPageEvent
in interface PageEventListener
event
- The event to processCopyright © 2020 City of Paris. All rights reserved.