public final enum

CacheResponseStatus

extends Enum<E extends Enum<E>>
java.lang.Object
   ↳ java.lang.Enum<E extends java.lang.Enum<E>>
     ↳ org.apache.http.client.cache.CacheResponseStatus

Class Overview

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.

Summary

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
static CacheResponseStatus valueOf(String name)
final static CacheResponseStatus[] values()
[Expand]
Inherited Methods
From class java.lang.Enum
From class java.lang.Object
From interface java.lang.Comparable

Enum Values

public static final CacheResponseStatus CACHE_HIT

A response was generated from the cache with no requests sent upstream.

public static final CacheResponseStatus CACHE_MISS

The response came from an upstream server.

public static final CacheResponseStatus CACHE_MODULE_RESPONSE

The response was generated directly by the caching module.

public static final CacheResponseStatus VALIDATED

The response was generated from the cache after validating the entry with the origin server.

Public Methods

public static CacheResponseStatus valueOf (String name)

public static final CacheResponseStatus[] values ()