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
   
  -   ATTR_VARIANT_LOCATIONS ATTR_VARIANT_LOCATIONS
-   Attribute index - The location of the variants.
  
-   ATTR_VARY ATTR_VARY
-   Attribute index - The dimension on which this resource varies.
  
-   variants variants
-   The loaded list of cached variants.
   
  -   VaryResource() VaryResource()
-  
   
  -   addVariant(CachedResource) addVariant(CachedResource)
-  
  
-   delete() delete()
-   Delete this cached entry from the cache.
  
-   getVariant(HttpEntityTag) getVariant(HttpEntityTag)
-  
  
-   getVariantLocations() getVariantLocations()
-   Get this varying resource cached variant locations.
  
-   getVariants() getVariants()
-  
  
-   getVariantsETag() getVariantsETag()
-  
  
-   getVary() getVary()
-   Get the dimension on which this resource varies.
  
-   isValid(Request) isValid(Request)
-   Is the currently cached version usable to answer the given request ?
 
  
-   setRequestValidation(Request) setRequestValidation(Request)
-   Update an original request for a revalidation.
  
-   updateVariant(Request, Reply) updateVariant(Request, Reply)
-  
  
-   validate(Request, Reply) validate(Request, Reply)
-   Given an HTTP transaction, validate that cached entry.
   
 ATTR_VARIANT_LOCATIONS
ATTR_VARIANT_LOCATIONS
 protected static int ATTR_VARIANT_LOCATIONS
  -  Attribute index - The location of the variants.
 
 ATTR_VARY
ATTR_VARY
 protected static int ATTR_VARY
  -  Attribute index - The dimension on which this resource varies.
 
 variants
variants
 protected CachedResource variants[]
  -  The loaded list of cached variants.
 
   
 VaryResource
VaryResource
 public VaryResource()
   
 getVariantLocations
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.
  
 
 getVary
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.
  
 
 addVariant
addVariant
 public synchronized void addVariant(CachedResource v)
 getVariants
getVariants
 public synchronized CachedResource[] getVariants()
 getVariantsETag
getVariantsETag
 public synchronized HttpEntityTag[] getVariantsETag()
 getVariant
getVariant
 public synchronized CachedResource getVariant(HttpEntityTag etag)
 updateVariant
updateVariant
 public Reply updateVariant(Request request,
                            Reply reply) throws IOException
 setRequestValidation
setRequestValidation
 public void setRequestValidation(Request request)
  -  Update an original request for a revalidation.
   
- 
    -  Overrides:
    
-  setRequestValidation in class CachedResource
  
 
 isValid
isValid
 public boolean isValid(Request request)
  -  Is the currently cached version usable to answer the given request ?
   
- 
    -  Overrides:
    
-  isValid in class CachedResource
  
 
 validate
validate
 public synchronized Reply validate(Request request,
                                    Reply reply) throws IOException
  -  Given an HTTP transaction, validate that cached entry.
   
- 
    -  Overrides:
    
-  validate in class CachedResource
  
 
 delete
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