org.apache.cocoon.caching
Class IdentifierCacheKey

java.lang.Object
  extended byorg.apache.cocoon.caching.IdentifierCacheKey
All Implemented Interfaces:
Serializable

public class IdentifierCacheKey
extends Object
implements Serializable

This is a "simple" cache key that does not consider the components used in the pipeline. It simply consists of a key (unique identifier for the request) and a boolean value that defines if the key is for a complete pipeline call or for an internal pipeline call.

Since:
2.1.1
Version:
$Id: IdentifierCacheKey.html 1304280 2012-03-23 11:18:01Z ilgrosso $
See Also:
Serialized Form

Field Summary
protected  boolean external
          True if this is an external pipeline call.
protected  String key
          The key.
protected  String toString
          Caches toString() value.
 
Constructor Summary
IdentifierCacheKey(String key, boolean external)
           
 
Method Summary
 boolean equals(Object object)
          Compare
 String getKey()
          The cache key
 int hashCode()
          Generate a hash code
 String toString()
          toString The FilesystemStore uses toString!
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

key

protected final String key
The key. Must not be null.


external

protected final boolean external
True if this is an external pipeline call.


toString

protected transient String toString
Caches toString() value.

Constructor Detail

IdentifierCacheKey

public IdentifierCacheKey(String key,
                          boolean external)
Parameters:
key - Not null key value
external - True if key represents external pipeline call
Method Detail

getKey

public String getKey()
The cache key


equals

public boolean equals(Object object)
Compare


hashCode

public int hashCode()
Generate a hash code


toString

public String toString()
toString The FilesystemStore uses toString!



Copyright 1999-2008 The Apache Software Foundation. All Rights Reserved.