Class RequestPathCacheKey

java.lang.Object
com.adobe.acs.commons.httpcache.keys.AbstractCacheKey
com.adobe.acs.commons.httpcache.config.impl.keys.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:
  • Constructor Details

    • RequestPathCacheKey

      public RequestPathCacheKey(org.apache.sling.api.SlingHttpServletRequest request, HttpCacheConfig cacheConfig)
    • RequestPathCacheKey

      public RequestPathCacheKey(String uri, HttpCacheConfig cacheConfig)
  • Method Details

    • 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.
    • hashCode

      public int hashCode()
      Description copied from interface: CacheKey
      The hashCode for the cache key.
      Specified by:
      hashCode in interface CacheKey
      Overrides:
      hashCode in class AbstractCacheKey
      Returns:
      the hash code.
    • 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()