org.apache.abdera.protocol.client.cache
Class SimpleCacheKey

java.lang.Object
  extended by org.apache.abdera.protocol.client.cache.SimpleCacheKey
All Implemented Interfaces:
CacheKey

public class SimpleCacheKey
extends java.lang.Object
implements CacheKey

Simple cache key based on an md5 hash of the URI. A more complete implementation should take the Vary header into account


Constructor Summary
SimpleCacheKey(java.lang.String uri)
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 byte[] getKey()
           
 int hashCode()
           
 boolean isMatch(CacheKey cacheKey)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleCacheKey

public SimpleCacheKey(java.lang.String uri)
Method Detail

getKey

public byte[] getKey()

isMatch

public boolean isMatch(CacheKey cacheKey)
Specified by:
isMatch in interface CacheKey

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object