org.codehaus.httpcache4j.cache
Class CacheItem

java.lang.Object
  extended by org.codehaus.httpcache4j.cache.CacheItem
All Implemented Interfaces:
java.io.Serializable

public final class CacheItem
extends java.lang.Object
implements java.io.Serializable

This is an internal class, and should not be used by clients.

Author:
Erlend Hamnaberg
See Also:
Serialized Form

Constructor Summary
CacheItem(HTTPResponse response)
           
CacheItem(HTTPResponse response, org.joda.time.DateTime cachedTime)
           
 
Method Summary
 boolean equals(java.lang.Object o)
           
 int getAge()
           
 org.joda.time.DateTime getCachedTime()
           
 HTTPResponse getResponse()
           
static int getTTL(HTTPResponse response, int defaultTTLinSeconds)
           
 int hashCode()
           
 boolean isStale()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CacheItem

public CacheItem(HTTPResponse response)

CacheItem

public CacheItem(HTTPResponse response,
                 org.joda.time.DateTime cachedTime)
Method Detail

isStale

public boolean isStale()

getAge

public int getAge()

getTTL

public static int getTTL(HTTPResponse response,
                         int defaultTTLinSeconds)

getCachedTime

public org.joda.time.DateTime getCachedTime()

getResponse

public HTTPResponse getResponse()

equals

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

hashCode

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


Copyright © 2008-2009. All Rights Reserved.