Class AbstractCacheKey
- java.lang.Object
-
- com.adobe.acs.commons.httpcache.keys.AbstractCacheKey
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
CombinedCacheKey,GroupCacheKey,KeyValueCacheKey,RequestPathCacheKey,ResourcePathCacheKey
public abstract class AbstractCacheKey extends Object implements Serializable
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected StringauthenticationRequirementprotected longcustomExpiryTimeprotected longexpiryForAccessTimeprotected longexpiryForUpdateTimeprotected StringhierarchyResourcePathprotected StringresourcePathprotected Stringuri
-
Constructor Summary
Constructors Constructor Description AbstractCacheKey()AbstractCacheKey(String uri, HttpCacheConfig cacheConfig)AbstractCacheKey(org.apache.sling.api.SlingHttpServletRequest request, HttpCacheConfig cacheConfig)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)StringgetAuthenticationRequirement()longgetExpiryForAccess()longgetExpiryForCreation()longgetExpiryForUpdate()StringgetHierarchyResourcePath()StringgetResourcePath()StringgetUri()inthashCode()booleanisInvalidatedBy(CacheKey cacheKey)protected StringmakeHierarchyResourcePath(String resourcePath)protected voidparentReadObject(ObjectInputStream o)protected voidparentWriteObject(ObjectOutputStream o)
-
-
-
Field Detail
-
authenticationRequirement
protected String authenticationRequirement
-
uri
protected String uri
-
resourcePath
protected String resourcePath
-
hierarchyResourcePath
protected String hierarchyResourcePath
-
customExpiryTime
protected long customExpiryTime
-
expiryForAccessTime
protected long expiryForAccessTime
-
expiryForUpdateTime
protected long expiryForUpdateTime
-
-
Constructor Detail
-
AbstractCacheKey
public AbstractCacheKey()
-
AbstractCacheKey
public AbstractCacheKey(org.apache.sling.api.SlingHttpServletRequest request, HttpCacheConfig cacheConfig)
-
AbstractCacheKey
public AbstractCacheKey(String uri, HttpCacheConfig cacheConfig)
-
-
Method Detail
-
parentWriteObject
protected void parentWriteObject(ObjectOutputStream o) throws IOException
- Throws:
IOException
-
parentReadObject
protected void parentReadObject(ObjectInputStream o) throws IOException, ClassNotFoundException
- Throws:
IOExceptionClassNotFoundException
-
getAuthenticationRequirement
public String getAuthenticationRequirement()
-
getUri
public String getUri()
-
getHierarchyResourcePath
public String getHierarchyResourcePath()
-
getResourcePath
public String getResourcePath()
-
isInvalidatedBy
public boolean isInvalidatedBy(CacheKey cacheKey)
-
getExpiryForCreation
public long getExpiryForCreation()
-
getExpiryForAccess
public long getExpiryForAccess()
-
getExpiryForUpdate
public long getExpiryForUpdate()
-
-