Class ResourcePathCacheKey

    • Constructor Detail

      • ResourcePathCacheKey

        public ResourcePathCacheKey​(org.apache.sling.api.SlingHttpServletRequest request,
                                    HttpCacheConfig cacheConfig)
    • Method Detail

      • equals

        public boolean equals​(Object o)
        Description copied from interface: CacheKey
        The equals method used to match up request-derived cache keys with keys in the httpcache.
        Specified by:
        equals in interface CacheKey
        Overrides:
        equals in class AbstractCacheKey
        Parameters:
        o - the object to evaluate this against.
        Returns:
        true if the objects represent the same cache item, false otherwise.
      • toString

        public String toString()
        Description copied from interface: CacheKey
        The useful string representation of this cache key. This should be generally unique as it drives display in the mbean.
        Specified by:
        toString in interface CacheKey
        Overrides:
        toString in class Object
        Returns:
        the string representing the cache key for human consumption.
      • getUri

        public String getUri()
        Description copied from interface: CacheKey
        Get URI.
        Specified by:
        getUri in interface CacheKey
        Overrides:
        getUri in class AbstractCacheKey
        Returns:
        the universal resource id. This can be a RequestURI or a Resource path based on the context of the key.