Package net.sourceforge.jnlp.cache
Class ResourceDownloader
java.lang.Object
net.sourceforge.jnlp.cache.ResourceDownloader
- All Implemented Interfaces:
Runnable
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected net.sourceforge.jnlp.cache.ResourceDownloader.UrlRequestResult
findBestUrl
(Resource resource) Returns the 'best' valid URL for the given resource.void
run()
-
Constructor Details
-
ResourceDownloader
-
-
Method Details
-
run
public void run() -
findBestUrl
protected net.sourceforge.jnlp.cache.ResourceDownloader.UrlRequestResult findBestUrl(Resource resource) Returns the 'best' valid URL for the given resource. This first adjusts the file name to take into account file versioning and packing, if possible.- Parameters:
resource
- the resource- Returns:
- the best URL, or null if all failed to resolve
-