info.magnolia.module.cache
Class DefaultCacheKey

java.lang.Object
  extended by info.magnolia.module.cache.DefaultCacheKey
All Implemented Interfaces:
Serializable

public class DefaultCacheKey
extends Object
implements Serializable

Default cache key implementation. Key is based on the URI, server name, parameters and request headers. Since the server name is likely to change from server to server, copying cached items around will most likely not help to avoid generating cache entries.

Version:
$Id:$
Author:
had
See Also:
Serialized Form

Constructor Summary
DefaultCacheKey(String uri, String serverName, String locale, Map<String,String> params)
           
 
Method Summary
 boolean equals(Object obj)
           
 String getDomain()
           
 String getLocale()
           
 Map<String,String> getParams()
           
 String getUri()
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DefaultCacheKey

public DefaultCacheKey(String uri,
                       String serverName,
                       String locale,
                       Map<String,String> params)
Method Detail

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

getUri

public String getUri()

getDomain

public String getDomain()

getLocale

public String getLocale()

getParams

public Map<String,String> getParams()

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2003-2011 Magnolia International Ltd.. All Rights Reserved.