|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--netx.jnlp.cache.CacheEntry
Describes an entry in the cache.
Constructor Summary | |
CacheEntry(java.net.URL location,
Version version)
Create a CacheEntry for the resources specified as a remote URL. |
Method Summary | |
long |
getLastUpdated()
Returns the time in the local system clock that the file was most recently checked for an update. |
java.net.URL |
getLocation()
Returns the remote location this entry caches. |
boolean |
isCached()
Returns true if the cache has a local copy of the contents of the URL matching the specified version string. |
boolean |
isCurrent(java.net.URLConnection connection)
Returns whether there is a version of the URL contents in the cache and it is up to date. |
void |
setLastUpdated(long updatedTime)
Sets the time in the local system clock that the file was most recently checked for an update. |
protected void |
store()
Save the current information for the cache entry. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public CacheEntry(java.net.URL location, Version version)
location
- the remote resource locationversion
- the version of the resourceMethod Detail |
public java.net.URL getLocation()
public long getLastUpdated()
public void setLastUpdated(long updatedTime)
public boolean isCurrent(java.net.URLConnection connection)
connection
- a connection to the remote URLpublic boolean isCached()
protected void store()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |