[icedtea-web] RFC: add support for packEnabled and versionEnabled
Omair Majid
omajid at redhat.com
Wed Jan 26 12:42:38 PST 2011
Hi,
The attached patch adds support for packEnabled and versionEnabled
properties in JNLP files. This allows JNLP applications to use pack200
compression and versioned jars without requiring special server
configuration/software. It also fixes bug RH669942.
The patch adds a new class DownloadOptions which specify download
options for jars (currently just version and pack200 support). Another
new class ResourceUrlCreator is used to get a list of valid urls for a
resource. ResourceTracker now uses ResourceUrlCreator to get the list of
valid urls for downloading a jar and then tries to find the best one.
initializeResource() and downloadResource() both use this url.
downloadResource() has been modified to look at the file extension as
well as the content-encoding when deciding whether a file is compressed
or not.
The patch is much bigger than I had expected it to be. It also affects
core functionality - downloading jars. I would appreciate any comments
and suggestions for improvements.
Thanks,
Omair
[1] https://bugzilla.redhat.com/show_bug.cgi?id=669942
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 669942-add-pack-and-version-02.patch
Type: text/x-patch
Size: 24806 bytes
Desc: not available
Url : http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20110126/9ff68058/669942-add-pack-and-version-02.patch
More information about the distro-pkg-dev
mailing list