|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
interface to storage module resources
| Method Summary | |
long |
getExpiration()
Gets the expiration date of this resource. |
java.io.InputStream |
getInputStream()
Gets an input stream from this resource |
long |
getLastModified()
Last-Modified is the http-header value used to check, if a resource is still up to date. |
long |
getLastUpdated()
Returns the time in the local system clock that the file was most recently checked for an update by this client machine. |
java.net.URL |
getLocalRes()
get an url to the local resource |
java.net.URL |
getLocation()
Returns the remote location this entry caches. |
java.lang.String |
getProperty(java.lang.String key)
Returns the value of the specified key, or null if the key does not exist. |
java.lang.String |
getProperty(java.lang.String key,
java.lang.String defaultValue)
Returns the value of the specified key, or the default value if the key does not exist. |
boolean |
isExpired()
is this resource still up to date |
void |
setExpiration(long l)
Sets the expiration date of this resource. |
void |
setProperty(java.lang.String key,
long value)
Sets the named property to the given value. |
java.lang.Object |
setProperty(java.lang.String key,
java.lang.String value)
Sets the value for the specified key. |
| Method Detail |
public java.net.URL getLocation()
public java.net.URL getLocalRes()
public java.io.InputStream getInputStream()
throws java.io.IOException
java.io.IOExceptionpublic long getLastUpdated()
This is not a http-header information. It is only used bye the client to remember the date/time when this resource was checked for existing updates.
public long getLastModified()
public java.lang.String getProperty(java.lang.String key)
key - key to look for
public java.lang.String getProperty(java.lang.String key,
java.lang.String defaultValue)
public java.lang.Object setProperty(java.lang.String key,
java.lang.String value)
public void setExpiration(long l)
l - expiration date/time
public long getExpiration()
public void setProperty(java.lang.String key,
long value)
key - name of the propertyvalue - of the propertypublic boolean isExpired()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||