| java.lang.Object org.w3c.tools.resources.AttributeHolder org.w3c.www.protocol.http.cache.CachedResource
All known Subclasses: org.w3c.www.protocol.http.cache.EntityCachedResource,
ATTR_CONNEG_HEADERS | protected static int ATTR_CONNEG_HEADERS(Code) | | Attribute index - The request headers used for content negotiation
as set by the reply Vary header.
|
ATTR_CONTENT_ENCODING | protected static int ATTR_CONTENT_ENCODING(Code) | | Attribute index - The Content Encoding of the resource
|
ATTR_CONTENT_LANGUAGE | protected static int ATTR_CONTENT_LANGUAGE(Code) | | Attribute index - The Content Language of the resource
|
ATTR_CONTENT_LENGTH | protected static int ATTR_CONTENT_LENGTH(Code) | | Attribute index - The resource content length.
|
ATTR_CONTENT_MD5 | protected static int ATTR_CONTENT_MD5(Code) | | Attribute index - The Content MD5 of the resource
|
ATTR_CURRENT_LENGTH | protected static int ATTR_CURRENT_LENGTH(Code) | | Attribute index - The resource current length.
|
ATTR_DATE | protected static int ATTR_DATE(Code) | | Attribute index - The Date of the resource
|
ATTR_DESCR | protected static String ATTR_DESCR(Code) | | The minimal attribute set used to describe a cachedresource without
loading it entirely.
|
ATTR_ETAG | protected static int ATTR_ETAG(Code) | | Attribute index - The entity tag (if any) associated with the resource.
|
ATTR_EXTRA_HEADERS | protected static int ATTR_EXTRA_HEADERS(Code) | | Attribute index - The extra headers attribute.
|
ATTR_FILE | protected static int ATTR_FILE(Code) | | Attribute index - The file
|
ATTR_IDENTIFIER | protected static int ATTR_IDENTIFIER(Code) | | Attribute index - The identifier
|
ATTR_LOAD_STATE | protected static int ATTR_LOAD_STATE(Code) | | Attribute index - The download state
|
ATTR_LOCATION | protected static int ATTR_LOCATION(Code) | | Attribute index - The Location of this resource
|
ATTR_REPLY_LAST_MODIFIED | protected static int ATTR_REPLY_LAST_MODIFIED(Code) | | Attribute index - The Last modified of this resource
|
ATTR_STATUS | protected static int ATTR_STATUS(Code) | | Attribute index - The reply status.
|
ATTR_VARY | protected static int ATTR_VARY(Code) | | Attribute index - The Vary of this resource
|
COND_FAILED | final public static int COND_FAILED(Code) | | Condition check return code - Condition existed but failed.
|
COND_OK | final public static int COND_OK(Code) | | Condition check return code - Condition existed and succeeded.
|
NAME_CONTENT_LENGTH | final protected static String NAME_CONTENT_LENGTH(Code) | | Attribute name - The resource content length.
|
NAME_CURRENT_LENGTH | final protected static String NAME_CURRENT_LENGTH(Code) | | Attribute name - The resource current length
|
NAME_FILE | final protected static String NAME_FILE(Code) | | Attribute name - The identifier
|
NAME_IDENTIFIER | final protected static String NAME_IDENTIFIER(Code) | | Attribute name - The identifier
|
STATE_LOAD_COMPLETE | final public static int STATE_LOAD_COMPLETE(Code) | | The download state of the resource, complete content
|
STATE_LOAD_ERROR | final public static int STATE_LOAD_ERROR(Code) | | The download state of the resource, erroneous, something weird
happened! but at least we know that :)
|
STATE_LOAD_PARTIAL | final public static int STATE_LOAD_PARTIAL(Code) | | The download state of the resource, partial content
|
STATE_LOAD_UNKNOWN | final public static int STATE_LOAD_UNKNOWN(Code) | | The download state of the resource, unknown, probably an HTTP/1.0
reply without the Content-Length.
|
STATE_NOT_LOADED | final public static int STATE_NOT_LOADED(Code) | | The download state of the resource, currently not loaded
|
invalidated | protected boolean invalidated(Code) | | |
prev | protected LRUAble prev(Code) | | LRU management - previous entry.
|
uploading | protected boolean uploading(Code) | | |
delete | public long delete()(Code) | | Delete this resource (and its associated file).
the number of bytes saved. |
getConnegHeaders | public ArrayDictionary getConnegHeaders()(Code) | | Get the extra headers stored for that resource.
An ArrayDictionary with the extra headers, or null if undefined. |
getContentEncoding | public String[] getContentEncoding()(Code) | | Get the Content-Encoding associated with that cached entry.
The String Content-Encoding, or null if undefined. |
getContentLanguage | public String[] getContentLanguage()(Code) | | Get the Content-Language associated with that cached entry.
The String Content-Language, or null if undefined. |
getContentLength | public int getContentLength()(Code) | | Get this cached entry content length.
An integer, giving the content length, or -1if undefined. |
getContentMD5 | public String getContentMD5()(Code) | | Get the Content-MD5 associated with that cached entry.
The String encoded Content-MD5, or null if undefined. |
getContentType | abstract public MimeType getContentType()(Code) | | Get the Content-Type of the cached resource of null if
there is no mime type (it should NEVER happen!)
a MimeType |
getCurrentAge | abstract public int getCurrentAge()(Code) | | returns the current age of this cached resource
an integer, the current age in seconds |
getCurrentLength | public int getCurrentLength()(Code) | | Get this cached entry current content length.
An integer, giving the current content length, or -1 if undefined |
getDate | public long getDate()(Code) | | Get this date, as a long
a long, the dateif undefined. |
getETag | public String getETag()(Code) | | Get the entity tag associated with that cached entry.
The String encoded entity tag, or null if undefined. |
getExtraHeaders | public ArrayDictionary getExtraHeaders()(Code) | | Get the extra headers stored for that resource.
An ArrayDictionary with the extra headers, or null if undefined. |
getFile | public File getFile()(Code) | | Get the cached File.
a File instance |
getFreshnessLifetime | abstract public int getFreshnessLifetime()(Code) | | returns the current freshness lifetime of this resource
a long, the freshness lifetime, in seconds |
getIdentifier | public String getIdentifier()(Code) | | Get this cached entry identifier
a String, usually the URL of the resource |
getLastModified | public long getLastModified()(Code) | | Get this Cached Resource last modification time.
A long giving the date of the last modification time, or-1 if undefined. |
getNext | public LRUAble getNext()(Code) | | LRU management - Get next node.
A CvsDirectory instance. |
getPrev | public LRUAble getPrev()(Code) | | LRU management - Get previous node.
A CvsDirectory instance. |
getStatus | public int getStatus()(Code) | | Get the HTTP status of that cached entry.
An integer HTTP status code, or -1 if undefined. |
getVary | public String[] getVary()(Code) | | Get the Vary associated with that cached entry.
The String array of Vary, or null if undefined. |
getWillRevalidate | public boolean getWillRevalidate()(Code) | | Get state of the resource, did someone ask for revalidation for
the next request?
a boolean, true if it will.-1 if undefined. |
lookupResource | public CachedResource lookupResource(Request request)(Code) | | This methods return the CachedResource matching this request
it allows lookup in the cache for alternatives
a CachedResource depending on the request |
notifyTeeFailure | public void notifyTeeFailure(int size)(Code) | | |
notifyTeeSuccess | public void notifyTeeSuccess(int size)(Code) | | |
perform | abstract public Reply perform(Request request) throws HttpException(Code) | | This cached entry has been checked valid, perform given request.
Parameters: request - The request to perform. An Reply instance. exception: HttpException - If something went wrong. |
setConnegHeaders | public void setConnegHeaders(ArrayDictionary a)(Code) | | Set a new set of extra headers for that resource.
Parameters: headers - The new set of headers. |
setContentEncoding | public void setContentEncoding(String[] sum)(Code) | | Associate a Content-Encoding with that cached enrty.
sum, the encoding as a string,or nullto reset the value. |
setContentLanguage | public void setContentLanguage(String[] language)(Code) | | Associate a Content-Language with that cached enrty.
sum, the encoding as a string,or nullto reset the value. |
setContentLength | public void setContentLength(int length)(Code) | | Set the content length of that cached entry.
Parameters: length - The new content length of that entry. |
setContentMD5 | public void setContentMD5(String sum)(Code) | | Associate a Content-MD5 with that cached enrty.
sum, the md5 sum as a string, see RFC2616, or nullto reset the value. |
setContentType | abstract public void setContentType(MimeType type)(Code) | | Set the Content-Type of this cached resource
Parameters: a - MimeType, the mime type of this resource |
setCurrentLength | public void setCurrentLength(int length)(Code) | | Set the current length of that cached entry.
Parameters: length - The current length of that entry. |
setDate | public void setDate(long date)(Code) | | Set the content length of that cached entry.
Parameters: length - The new content length of that entry. |
setETag | public void setETag(String etag)(Code) | | Associate an entity tag with that cached enrty.
Parameters: etag - The entity tag of the entry, or nullto reset the value. |
setExtraHeaders | public void setExtraHeaders(ArrayDictionary a)(Code) | | Set a new set of extra headers for that resource.
Parameters: headers - The new set of headers. |
setFile | public void setFile(File file)(Code) | | Set the cached file
Parameters: file - |
setLastModified | public void setLastModified(long lastmodified)(Code) | | Set the last modified time of that cached entry.
Parameters: lastmodified - The last modification date as a number of milliseconds since Java epoch, or -1 to undefineprevious setting. |
setNext | public synchronized void setNext(LRUAble next)(Code) | | LRU management - Set next node.
A CvsDirectory instance. |
setPrev | public synchronized void setPrev(LRUAble prev)(Code) | | LRU management - Set previous node.
A CvsDirectory instance. |
setRequestRevalidation | abstract public Request setRequestRevalidation(Request request)(Code) | | This cached entry needs revalidation, it will modify the
request to do that.
|
setStatus | public void setStatus(int status)(Code) | | Set the reply status for that entry.
Parameters: status - The HTTP status code of that entry, or -1to undefine the previous setting. |
setValue | public void setValue(int idx, Object value)(Code) | | overrides the default setValue to invalidate the ETag
|
setVary | public void setVary(String[] vary)(Code) | | Associate a Vary with that cached enrty.
sum, the header involved in the variant check as a string array,or nullto reset the value. |
setWillRevalidate | public void setWillRevalidate(boolean invalidated)(Code) | | Set this cached entry revalidate-on-next-request flag
validate, a boolean, true if it will be revalidatednext time. |
Methods inherited from org.w3c.tools.resources.AttributeHolder | public boolean definesAttribute(int idx) throws IllegalAttributeAccess(Code)(Java Doc) public boolean definesAttribute(String name) throws IllegalAttributeAccess(Code)(Java Doc) public Attribute[] getAttributes()(Code)(Java Doc) public boolean getBoolean(int idx, boolean def)(Code)(Java Doc) public char getChar(int idx, char def)(Code)(Java Doc) public Object getClone(Object values)(Code)(Java Doc) public synchronized Object getClone()(Code)(Java Doc) public synchronized Object getClone(Hashtable defs)(Code)(Java Doc) public double getDouble(int idx, double def)(Code)(Java Doc) public float getFloat(int idx, float def)(Code)(Java Doc) public int getInt(int idx, int def)(Code)(Java Doc) public long getLong(int idx, long def)(Code)(Java Doc) public String getString(int idx, String def)(Code)(Java Doc) public synchronized Object getValue(int idx, Object def) throws IllegalAttributeAccess(Code)(Java Doc) public Object getValue(String name, Object def) throws IllegalAttributeAccess(Code)(Java Doc) public synchronized void initialize(Object nvalues)(Code)(Java Doc) public synchronized void initialize(Hashtable defs)(Code)(Java Doc) public int lookupAttribute(String name)(Code)(Java Doc) public synchronized void pickleValues(Hashtable defs)(Code)(Java Doc) public void print(PrintStream out)(Code)(Java Doc) public void setBoolean(int idx, boolean b)(Code)(Java Doc) public void setChar(int idx, char ch) throws IllegalAttributeAccess(Code)(Java Doc) public void setDouble(int idx, double d) throws IllegalAttributeAccess(Code)(Java Doc) public void setFloat(int idx, float f) throws IllegalAttributeAccess(Code)(Java Doc) public void setInt(int idx, int i) throws IllegalAttributeAccess(Code)(Java Doc) public void setLong(int idx, long l) throws IllegalAttributeAccess(Code)(Java Doc) public void setString(int idx, String s) throws IllegalAttributeAccess(Code)(Java Doc) public synchronized void setValue(int idx, Object value)(Code)(Java Doc) public void setValue(String name, Object value)(Code)(Java Doc) public boolean unsafeDefinesAttribute(int idx) throws IllegalAttributeAccess(Code)(Java Doc) public double unsafeGetDouble(int idx, double def)(Code)(Java Doc) public String unsafeGetString(int idx, String def)(Code)(Java Doc) public Object unsafeGetValue(int idx, Object def) throws IllegalAttributeAccess(Code)(Java Doc)
|
|
|