01: // CacheState.java
02: // $Id: CacheState.java,v 1.19 2000/08/16 21:38:03 ylafon Exp $
03: // (c) COPYRIGHT MIT, INRIA and Keio, 1999.
04: // Please first read the full copyright statement in file COPYRIGHT.htm
05: package org.w3c.www.protocol.http.cache;
06:
07: public class CacheState {
08:
09: /**
10: * The state used to disable that filter per request. Also set by the cache
11: * if the request cannot be fullfilled by caches, as detected by this
12: * filter.
13: */
14: public static final String STATE_NOCACHE = "org.w3c.www.protocol.http.cache.dont";
15:
16: /**
17: * Name of the state used to collect warnings. (request)
18: */
19: public static final String STATE_WARNINGS = "org.w3c.www.protocol.http.cache.CacheFilter.warns";
20:
21: /**
22: * Name of the request state used to keep track of original request
23: */
24: public static final String STATE_ORIGREQ = "org.w3c.www.protocol.http.cache.CacheFilter.origreq";
25:
26: /**
27: * Name of the request state that marks a request as being a revalidation.
28: */
29: public static final String STATE_REVALIDATION = "org.w3c.www.protocol.http.cache.revalidation";
30:
31: /**
32: * Name of the property that indicates that the cache can be used.
33: */
34: public static final String STATE_CACHABLE = "org.w3c.www.protocol.http.cache.cachable";
35:
36: /**
37: * Name of the property that indicates that the entity may be stored.
38: */
39: public static final String STATE_STORABLE = "org.w3c.www.protocol.http.cache.storable";
40:
41: /**
42: * name of the state containing the cached resource
43: */
44: public static final String STATE_RESOURCE = "org.w3c.www.protocol.http.cache.resource";
45:
46: /**
47: * STATE_HOW value - Indicates a cache hit.
48: */
49: public static final Integer HOW_HIT = new Integer(1);
50: /**
51: * STATE_HOW value - Indicates a cache miss.
52: */
53: public static final Integer HOW_MISS = new Integer(2);
54: /**
55: * STATE_HOW value - indicates a served cached entry after a revalidation
56: */
57: public static final Integer HOW_REVALIDATION_SUCCESS = new Integer(
58: 3);
59: /**
60: * STATE_HOW value - indicates a remote served entry after a failed
61: * revalidation of a cached entry
62: */
63: public static final Integer HOW_REVALIDATION_FAILURE = new Integer(
64: 4);
65:
66: }
|