Interface IPathCacheService

  • All Known Implementing Classes:
    PathCacheService

    public interface IPathCacheService
    Service interface for XPage path caching
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String BEAN_NAME
      Bean name
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.lang.String getFromCache​(java.lang.String strKey)
      Get the path html from cache
      java.lang.String getKey​(java.lang.String strXPageName, int nMode, java.lang.String strTitlesUrls, javax.servlet.http.HttpServletRequest request)
      Constructs a cache key
      java.lang.String getKey​(java.lang.String strXPageName, int nMode, javax.servlet.http.HttpServletRequest request)
      Constructs a cache key
      void putInCache​(java.lang.String strKey, java.lang.String path)
      Put a path in cache
    • 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 name
        nMode - the mode
        request - the request
        Returns:
        the cache key, or null if 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 name
        nMode - the mode
        strTitlesUrls - list of links (url and titles)
        request - the request the request
        Returns:
        the cache key, or null if 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 null if 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 key
        path - the path html