org.codehaus.httpcache4j.cache
Class CacheItem
java.lang.Object
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
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
CacheItem
public CacheItem(HTTPResponse response)
CacheItem
public CacheItem(HTTPResponse response,
org.joda.time.DateTime cachedTime)
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.