|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.w3c.tools.resources.AttributeHolder | +--org.w3c.tools.resources.Resource | +--org.w3c.www.protocol.http.cache.CachedResource | +--org.w3c.www.protocol.http.cache.VaryResource
Field Summary | |
protected static int |
ATTR_VARIANT_LOCATIONS
Attribute index - The location of the variants. |
protected static int |
ATTR_VARY
Attribute index - The dimension on which this resource varies. |
protected CachedResource[] |
variants
The loaded list of cached variants. |
Fields inherited from class org.w3c.www.protocol.http.cache.CachedResource |
ATTR_CACHE_FILTER,
ATTR_CONTENT_LENGTH,
ATTR_CONTENT_TYPE,
ATTR_DATE,
ATTR_ETAG,
ATTR_EXTRA_HEADERS,
ATTR_FILE,
ATTR_GENERATION,
ATTR_INITAGE,
ATTR_LAST_MODIFIED,
ATTR_MAXAGE,
ATTR_RESOURCE_STORE,
ATTR_RESPONSE_TIME,
ATTR_REVALIDATE,
ATTR_STATUS,
COND_FAILED,
COND_OK,
DEFAULT_MAXAGE |
Fields inherited from class org.w3c.tools.resources.Resource |
ATTR_CONTEXT,
ATTR_HELP_URL,
ATTR_IDENTIFIER,
ATTR_LAST_MODIFIED,
ATTR_PARENT,
ATTR_RESOURCE_FRAMES,
ATTR_STORE_ENTRY,
ATTR_URL |
Fields inherited from class org.w3c.tools.resources.AttributeHolder |
attributes,
slowpickle,
values |
Constructor Summary | |
VaryResource()
|
Method Summary | |
void |
addVariant(CachedResource v)
|
void |
delete()
Delete this cached entry from the cache. |
CachedResource |
getVariant(HttpEntityTag etag)
|
java.lang.String[] |
getVariantLocations()
Get this varying resource cached variant locations. |
CachedResource[] |
getVariants()
|
HttpEntityTag[] |
getVariantsETag()
|
java.lang.String[] |
getVary()
Get the dimension on which this resource varies. |
boolean |
isValid(Request request)
|
void |
setRequestValidation(Request request)
|
Reply |
updateVariant(Request request,
Reply reply)
|
Reply |
validate(Request request,
Reply reply)
|
Methods inherited from class org.w3c.tools.resources.Resource |
acceptUnload,
checkMultipleLock,
collectFrames,
getClone,
getContext,
getFrame,
getFrames,
getHelpURL,
getHelpURL,
getIdentifier,
getParent,
getResourceReference,
getServer,
getSpace,
getSpaceEntry,
getStoreEntry,
getURLPath,
getValue,
getValue,
isInitialized,
markModified,
notifyUnload,
registerFrame,
setContext,
setContext,
setValue,
unregisterFrame,
updateAttributes |
Methods inherited from class org.w3c.tools.resources.AttributeHolder |
definesAttribute,
definesAttribute,
getAttributes,
getBoolean,
getChar,
getClone,
getClone,
getDouble,
getFloat,
getInt,
getLong,
getString,
getValue,
initialize,
lookupAttribute,
pickle,
print,
setBoolean,
setChar,
setDouble,
setFloat,
setInt,
setLong,
setString,
setValue,
unpickle,
unpickle,
unpickle,
unpickleInstance,
unpickleInstance |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
protected static int ATTR_VARIANT_LOCATIONS
protected static int ATTR_VARY
protected CachedResource[] variants
Constructor Detail |
public VaryResource()
Method Detail |
public java.lang.String[] getVariantLocations()
public java.lang.String[] getVary()
public void addVariant(CachedResource v)
public CachedResource[] getVariants()
public HttpEntityTag[] getVariantsETag()
public CachedResource getVariant(HttpEntityTag etag)
public Reply updateVariant(Request request, Reply reply) throws java.io.IOException
public void setRequestValidation(Request request)
public boolean isValid(Request request)
public Reply validate(Request request, Reply reply) throws java.io.IOException
public void delete()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |