Class RequestPathCacheKey

  • All Implemented Interfaces:
    CacheKey, Serializable

    public class RequestPathCacheKey
    extends AbstractCacheKey
    implements CacheKey
    RequestPathCacheKey. Not used currently.

    Generated keys contain resource path, selector and extension.

    Since:
    2018-05-03
    Author:
    niek.raaijkmakers@external.cybercon.de
    See Also:
    Serialized Form
    • Constructor Detail

      • RequestPathCacheKey

        public RequestPathCacheKey​(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.
      • getSelector

        public String getSelector()
      • getExtension

        public String getExtension()