public final class ExportNamesCacheKeyGenerator extends AbstractCacheKeyGenerator
Constructor and Description |
---|
ExportNamesCacheKeyGenerator() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object other)
This method should return true if this object's
ICacheKeyGenerator.generateKey(HttpServletRequest)
method will always return the same value as other for the same
HttpServletRequest object. |
String |
generateKey(javax.servlet.http.HttpServletRequest request)
Returns a string that will be used to identify cached responses for the
specified request.
|
int |
hashCode() |
String |
toString()
Cache key generators should implement this function to return a short
keyword identifier for the generator (typically the same keyword used
in generated keys) plus a string representation of the instance data
that is used in constructing the keys (if any).
|
combine, getCacheKeyGenerators, isProvisional
public String generateKey(javax.servlet.http.HttpServletRequest request)
ICacheKeyGenerator
For clarity's sake, keys should avoid using semi-colons since these are used as a separator when aggregating the keys from multiple cache key generators.
Note that IOptions
properties do not need to be factored into the
returned key since any changes in these properties invalidates cached
responses and clears the module and layer caches.
generateKey
in interface ICacheKeyGenerator
generateKey
in class AbstractCacheKeyGenerator
request
- The request objectpublic String toString()
ICacheKeyGenerator
toString
in interface ICacheKeyGenerator
toString
in class AbstractCacheKeyGenerator
public boolean equals(Object other)
ICacheKeyGenerator
ICacheKeyGenerator.generateKey(HttpServletRequest)
method will always return the same value as other
for the same
HttpServletRequest
object. Classes that implement this method should
implement Object.hashCode()
as well.equals
in interface ICacheKeyGenerator
equals
in class Object
other
Copyright © 2011-2015 IBM. All Rights Reserved.