info.magnolia.module.cache
Class DefaultCacheKey

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

public class DefaultCacheKey
extends java.lang.Object
implements java.io.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(java.lang.String uri, java.lang.String serverName, java.lang.String locale, java.util.Map<java.lang.String,java.lang.String> params)
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.String getDomain()
           
 java.lang.String getLocale()
           
 java.util.Map<java.lang.String,java.lang.String> getParams()
           
 java.lang.String getUri()
           
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DefaultCacheKey

public DefaultCacheKey(java.lang.String uri,
                       java.lang.String serverName,
                       java.lang.String locale,
                       java.util.Map<java.lang.String,java.lang.String> params)
Method Detail

hashCode

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

equals

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

getUri

public java.lang.String getUri()

getDomain

public java.lang.String getDomain()

getLocale

public java.lang.String getLocale()

getParams

public java.util.Map<java.lang.String,java.lang.String> getParams()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


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