| 
 | J2EE1.4 SDK | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.appserv.web.cache.filter.HttpCacheEntry
HttpCacheEntry Each entry holds cached (HTTP) response: a) response bytes b) response headers c) expiryTime d) parameterEncoding used e) entryKey this entry represents, to match the entry within the hash bucket. XXX: should implement methods to enable serialization of cached response?
| Field Summary | |
| static int | VALUE_NOT_SET | 
| Constructor Summary | |
| HttpCacheEntry() | |
| Method Summary | |
|  void | clear()clear the contents | 
|  void | computeExpireTime(int timeout)compute when this entry to be expired based on timeout relative to current time. | 
|  int | getSize()get the size | 
|  boolean | isValid()is this response still valid? | 
|  void | setExpireTime(long expireTime)set the real expire time | 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
public static final int VALUE_NOT_SET
| Constructor Detail | 
public HttpCacheEntry()
| Method Detail | 
public void setExpireTime(long expireTime)
expireTime - in milli secondspublic void computeExpireTime(int timeout)
timeout - in secondspublic boolean isValid()
public void clear()
public int getSize()
| 
 | J2EE1.4 SDK | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Copyright 2003 Sun Microsystems, Inc. All rights reserved.