java.lang.Object | ||
↳ | java.lang.Enum<E extends java.lang.Enum<E>> | |
↳ | org.apache.http.client.cache.CacheResponseStatus |
This enumeration represents the various ways a response can be generated
by the CachingHttpClient
;
if a request is executed with an org.apache.http.protocol.HttpContext
then a parameter with one of these values will be registered in the
context under the key
CACHE_RESPONSE_STATUS
.
Enum Values | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
CacheResponseStatus | CACHE_HIT | A response was generated from the cache with no requests sent upstream. | |||||||||
CacheResponseStatus | CACHE_MISS | The response came from an upstream server. | |||||||||
CacheResponseStatus | CACHE_MODULE_RESPONSE | The response was generated directly by the caching module. | |||||||||
CacheResponseStatus | VALIDATED | The response was generated from the cache after validating the entry with the origin server. |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Enum
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
java.lang.Comparable
|
A response was generated from the cache with no requests sent upstream.
The response was generated directly by the caching module.
The response was generated from the cache after validating the entry with the origin server.