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.

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

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


DefaultCacheKey

public DefaultCacheKey(String uri,
                       String serverName,
                       String locale,
                       String channel,
                       String method,
                       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()

getChannel

public String getChannel()

getParams

public Map<String,String> getParams()

getIsSecured

public Boolean getIsSecured()

getMethod

public String getMethod()

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2003–2014 Magnolia International Ltd.. All rights reserved.