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
Cachekey that differentiates based on:
Resource path
Authentication requirement
- See Also:
-
Field Summary
Fields inherited from class com.adobe.acs.commons.httpcache.keys.AbstractCacheKey
authenticationRequirement, customExpiryTime, expiryForAccessTime, expiryForUpdateTime, hierarchyResourcePath, resourcePath, uri -
Constructor Summary
ConstructorsConstructorDescriptionResourcePathCacheKey(String uri, HttpCacheConfig cacheConfig) ResourcePathCacheKey(org.apache.sling.api.SlingHttpServletRequest request, HttpCacheConfig cacheConfig) -
Method Summary
Methods inherited from class com.adobe.acs.commons.httpcache.keys.AbstractCacheKey
getAuthenticationRequirement, getExpiryForAccess, getExpiryForCreation, getExpiryForUpdate, getHierarchyResourcePath, getResourcePath, isInvalidatedBy, makeHierarchyResourcePath, parentReadObject, parentWriteObjectMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.adobe.acs.commons.httpcache.keys.CacheKey
getExpiryForAccess, getExpiryForCreation, getExpiryForUpdate, getHierarchyResourcePath, isInvalidatedBy
-
Constructor Details
-
ResourcePathCacheKey
public ResourcePathCacheKey(org.apache.sling.api.SlingHttpServletRequest request, HttpCacheConfig cacheConfig) -
ResourcePathCacheKey
-
-
Method Details
-
equals
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
Description copied from interface:CacheKeyThe useful string representation of this cache key. This should be generally unique as it drives display in the mbean. -
getUri
Description copied from interface:CacheKeyGet URI.- Specified by:
getUriin interfaceCacheKey- Overrides:
getUriin classAbstractCacheKey- Returns:
- the universal resource id. This can be a RequestURI or a Resource path based on the context of the key.
-