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)
          Deprecated. since 4.4.6 use info.magnolia.module.cache.DefaultCacheKey.DefaultCacheKey(String, String, String, Map, Boolean)
DefaultCacheKey(String uri, String serverName, String locale, Map<String,String> params, Boolean isSecure)
           
 
Method Summary
 boolean equals(Object obj)
           
 String getDomain()
           
 Boolean getIsSecured()
           
 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

@Deprecated
public DefaultCacheKey(String uri,
                                  String serverName,
                                  String locale,
                                  Map<String,String> params)
Deprecated. since 4.4.6 use info.magnolia.module.cache.DefaultCacheKey.DefaultCacheKey(String, String, String, Map, Boolean)


DefaultCacheKey

public DefaultCacheKey(String uri,
                       String serverName,
                       String locale,
                       Map<String,String> params,
                       Boolean isSecure)
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()

getIsSecured

public Boolean getIsSecured()

toString

public String toString()
Overrides:
toString in class Object


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