org.apache.cocoon.pipeline.caching
Class ParameterCacheKey

java.lang.Object
  extended by org.apache.cocoon.pipeline.caching.AbstractCacheKey
      extended by org.apache.cocoon.pipeline.caching.ParameterCacheKey
All Implemented Interfaces:
Serializable, CacheKey

public class ParameterCacheKey
extends AbstractCacheKey

A CacheKey that contains a Map of parameters.

See Also:
Serialized Form

Constructor Summary
ParameterCacheKey()
           
ParameterCacheKey(Map<String,String> parameters)
           
ParameterCacheKey(String name, Map<?,?> value)
           
ParameterCacheKey(String name, String value)
           
 
Method Summary
 void addParameter(String name, boolean value)
           
 void addParameter(String name, int value)
           
 void addParameter(String name, Map<?,?> value)
           
 void addParameter(String name, String value)
           
 boolean equals(Object obj)
          
 long getLastModified()
          
 int hashCode()
          
 boolean isValid(CacheKey cacheKey)
          
 
Methods inherited from class org.apache.cocoon.pipeline.caching.AbstractCacheKey
getJmxGroupName, hasJmxGroupName, setJmxGroupName
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ParameterCacheKey

public ParameterCacheKey()

ParameterCacheKey

public ParameterCacheKey(Map<String,String> parameters)

ParameterCacheKey

public ParameterCacheKey(String name,
                         Map<?,?> value)

ParameterCacheKey

public ParameterCacheKey(String name,
                         String value)
Method Detail

addParameter

public void addParameter(String name,
                         boolean value)

addParameter

public void addParameter(String name,
                         int value)

addParameter

public void addParameter(String name,
                         Map<?,?> value)

addParameter

public void addParameter(String name,
                         String value)

equals

public boolean equals(Object obj)

Overrides:
equals in class Object
See Also:
Object.equals(java.lang.Object)

getLastModified

public long getLastModified()

See Also:
CacheKey.getLastModified()

hashCode

public int hashCode()

Overrides:
hashCode in class Object
See Also:
Object.hashCode()

isValid

public boolean isValid(CacheKey cacheKey)

See Also:
CacheKey.isValid(org.apache.cocoon.pipeline.caching.CacheKey)


Copyright © 2008-2012 The Apache Software Foundation. All Rights Reserved.