aboutsummaryrefslogtreecommitdiffstats
path: root/ChangeLog
diff options
context:
space:
mode:
authorOmair Majid <[email protected]>2011-02-10 17:25:18 -0500
committerOmair Majid <[email protected]>2011-02-10 17:25:18 -0500
commitbd77d9b6fd61b02fda0e0c3bba478caf7dfe8258 (patch)
treee46d6648f8b07edbeef40f95c2f6aec0bb45a217 /ChangeLog
parentd0496a267170fb065b28352281a7b70a66e94e2f (diff)
Fix RH669942: Add support for packEnabled and versionEnabled
This changeset adds support for explicitly using jars with pack200 compression and versioning. This requires no server side support, but expects the client to try and find the right jar and fallback to using uncompressed/unversioned jars if the versioned/compressed ones can not be found. 2011-02-10 Omair Majid <[email protected]> Fix RH669942; Add support for packEnabled and versionEnabled. * NEWS: Update with bugfix. * netx/net/sourceforge/jnlp/DownloadOptions.java: New file. * netx/net/sourceforge/jnlp/JNLPFile.java (openURL): Use null for DownloadOptions. (getResourceDescs): New method. (getResourceDescs(Locale,String,String)): New method. * netx/net/sourceforge/jnlp/Launcher.java (launchApplication): Add image to downloader with null DownloadOptions. * netx/net/sourceforge/jnlp/cache/CacheUtil.java (getCachedResource): Add resource with null DownloadOptions. * netx/net/sourceforge/jnlp/cache/Resource.java: Add new field downloadLocation. (Resource): Initialize downloadLocation. (getDownloadLocation): New method. (setDownloadLocation): New method. * netx/net/sourceforge/jnlp/cache/ResourceTracker.java: Add new field downloadOptions. (addResource(URL,Version,UpdatePolicy)): Renamed to... (addResource(URL,Version,DownloadOptions,UpdatePolicy)): New method. (downloadResource): Add support for explicit downloading of packed jars as well as content-encoded packed jars. (initializeResource): Invokde findBestUrl to find the best url. Set that as the download location for the resource. (getVersionedResourceURL): Remove. (findBestUrl): New method. Use ResourceUrlCreator to get a list of all possible urls that can be used to download this resource. Try them one by one until one works and return that. * netx/net/sourceforge/jnlp/cache/ResourceUrlCreator.java: New file. * netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java (initializeResources): Add resource with appropriate download options. (activateJars): Likewise. (loadClass): Likewise. (getDownloadOptionsForJar): New method.
Diffstat (limited to 'ChangeLog')
-rw-r--r--ChangeLog37
1 files changed, 37 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 3616202..b8689c3 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,40 @@
+2011-02-10 Omair Majid <[email protected]>
+
+ Fix RH669942; Add support for packEnabled and versionEnabled.
+ * NEWS: Update with bugfix.
+ * netx/net/sourceforge/jnlp/DownloadOptions.java: New file.
+ * netx/net/sourceforge/jnlp/JNLPFile.java
+ (openURL): Use null for DownloadOptions.
+ (getResourceDescs): New method.
+ (getResourceDescs(Locale,String,String)): New method.
+ * netx/net/sourceforge/jnlp/Launcher.java
+ (launchApplication): Add image to downloader with null DownloadOptions.
+ * netx/net/sourceforge/jnlp/cache/CacheUtil.java
+ (getCachedResource): Add resource with null DownloadOptions.
+ * netx/net/sourceforge/jnlp/cache/Resource.java: Add new field
+ downloadLocation.
+ (Resource): Initialize downloadLocation.
+ (getDownloadLocation): New method.
+ (setDownloadLocation): New method.
+ * netx/net/sourceforge/jnlp/cache/ResourceTracker.java: Add new field
+ downloadOptions.
+ (addResource(URL,Version,UpdatePolicy)): Renamed to...
+ (addResource(URL,Version,DownloadOptions,UpdatePolicy)): New method.
+ (downloadResource): Add support for explicit downloading of packed jars as
+ well as content-encoded packed jars.
+ (initializeResource): Invokde findBestUrl to find the best url. Set that
+ as the download location for the resource.
+ (getVersionedResourceURL): Remove.
+ (findBestUrl): New method. Use ResourceUrlCreator to get a list of all
+ possible urls that can be used to download this resource. Try them one by
+ one until one works and return that.
+ * netx/net/sourceforge/jnlp/cache/ResourceUrlCreator.java: New file.
+ * netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java
+ (initializeResources): Add resource with appropriate download options.
+ (activateJars): Likewise.
+ (loadClass): Likewise.
+ (getDownloadOptionsForJar): New method.
+
2011-02-10 Deepak Bhole <[email protected]>
* netx/net/sourceforge/jnlp/runtime/JNLPRuntime.java (initialize):