Class ResourcePathCacheKey
- java.lang.Object
-
- com.adobe.acs.commons.httpcache.keys.AbstractCacheKey
-
- com.adobe.acs.commons.httpcache.config.impl.keys.ResourcePathCacheKey
-
- All Implemented Interfaces:
CacheKey,Serializable
public class ResourcePathCacheKey extends AbstractCacheKey implements CacheKey, Serializable
Cachekey that differentiates based on:Resource path
Authentication requirement
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.adobe.acs.commons.httpcache.keys.AbstractCacheKey
authenticationRequirement, customExpiryTime, expiryForAccessTime, expiryForUpdateTime, hierarchyResourcePath, resourcePath, uri
-
-
Constructor Summary
Constructors Constructor Description ResourcePathCacheKey(String uri, HttpCacheConfig cacheConfig)ResourcePathCacheKey(org.apache.sling.api.SlingHttpServletRequest request, HttpCacheConfig cacheConfig)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)The equals method used to match up request-derived cache keys with keys in the httpcache.StringgetUri()Get URI.inthashCode()The hashCode for the cache key.StringtoString()The useful string representation of this cache key.-
Methods inherited from class com.adobe.acs.commons.httpcache.keys.AbstractCacheKey
getAuthenticationRequirement, getExpiryForAccess, getExpiryForCreation, getExpiryForUpdate, getHierarchyResourcePath, getResourcePath, isInvalidatedBy, makeHierarchyResourcePath, parentReadObject, parentWriteObject
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.adobe.acs.commons.httpcache.keys.CacheKey
getExpiryForAccess, getExpiryForCreation, getExpiryForUpdate, getHierarchyResourcePath, isInvalidatedBy
-
-
-
-
Constructor Detail
-
ResourcePathCacheKey
public ResourcePathCacheKey(org.apache.sling.api.SlingHttpServletRequest request, HttpCacheConfig cacheConfig)
-
ResourcePathCacheKey
public ResourcePathCacheKey(String uri, HttpCacheConfig cacheConfig)
-
-
Method Detail
-
equals
public boolean equals(Object o)
Description copied from interface:CacheKeyThe equals method used to match up request-derived cache keys with keys in the httpcache.- Specified by:
equalsin interfaceCacheKey- Overrides:
equalsin classAbstractCacheKey- 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:CacheKeyThe hashCode for the cache key.- Specified by:
hashCodein interfaceCacheKey- Overrides:
hashCodein classAbstractCacheKey- Returns:
- the hash code.
-
toString
public String toString()
Description copied from interface:CacheKeyThe useful string representation of this cache key. This should be generally unique as it drives display in the mbean.
-
-