All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class w3c.www.protocol.http.cache.VaryResource

java.lang.Object
   |
   +----w3c.tools.store.AttributeHolder
           |
           +----w3c.tools.store.Resource
                   |
                   +----w3c.www.protocol.http.cache.CachedResource
                           |
                           +----w3c.www.protocol.http.cache.VaryResource

public class VaryResource
extends CachedResource

Variable Index

 o ATTR_VARIANT_LOCATIONS
Attribute index - The location of the variants.
 o ATTR_VARY
Attribute index - The dimension on which this resource varies.
 o variants
The loaded list of cached variants.

Constructor Index

 o VaryResource()

Method Index

 o addVariant(CachedResource)
 o delete()
Delete this cached entry from the cache.
 o getVariant(HttpEntityTag)
 o getVariantLocations()
Get this varying resource cached variant locations.
 o getVariants()
 o getVariantsETag()
 o getVary()
Get the dimension on which this resource varies.
 o isValid(Request)
Is the currently cached version usable to answer the given request ?
 o setRequestValidation(Request)
Update an original request for a revalidation.
 o updateVariant(Request, Reply)
 o validate(Request, Reply)
Given an HTTP transaction, validate that cached entry.

Variables

 o ATTR_VARIANT_LOCATIONS
 protected static int ATTR_VARIANT_LOCATIONS
Attribute index - The location of the variants.

 o ATTR_VARY
 protected static int ATTR_VARY
Attribute index - The dimension on which this resource varies.

 o variants
 protected CachedResource variants[]
The loaded list of cached variants.

Constructors

 o VaryResource
 public VaryResource()

Methods

 o getVariantLocations
 public synchronized String[] getVariantLocations()
Get this varying resource cached variant locations.

Returns:
A array of URL encoded as String a String array, or null if no variants have been cached yet.
 o getVary
 public String[] getVary()
Get the dimension on which this resource varies.

Returns:
A list of HTTP header field names. This method will never return null since this would prevent it from being cached.
 o addVariant
 public synchronized void addVariant(CachedResource v)
 o getVariants
 public synchronized CachedResource[] getVariants()
 o getVariantsETag
 public synchronized HttpEntityTag[] getVariantsETag()
 o getVariant
 public synchronized CachedResource getVariant(HttpEntityTag etag)
 o updateVariant
 public Reply updateVariant(Request request,
                            Reply reply) throws IOException
 o setRequestValidation
 public void setRequestValidation(Request request)
Update an original request for a revalidation.

Overrides:
setRequestValidation in class CachedResource
 o isValid
 public boolean isValid(Request request)
Is the currently cached version usable to answer the given request ?

Overrides:
isValid in class CachedResource
 o validate
 public synchronized Reply validate(Request request,
                                    Reply reply) throws IOException
Given an HTTP transaction, validate that cached entry.

Overrides:
validate in class CachedResource
 o delete
 public synchronized void delete()
Delete this cached entry from the cache.

Overrides:
delete in class CachedResource

All Packages  Class Hierarchy  This Package  Previous  Next  Index