changeset 41:8796ebc88ed0

add javax.jnlp.IntegrationService and javax.jnlp.DownloadService2 2010-11-18 Omair Majid <omajid@redhat.com> * NEWS: Update with new interfaces * netx/javax/jnlp/DownloadService2.java: New interface. (ResourceSpec): New class. (ResourceSpec.ResourceSpec): New method. (ResourceSpec.getExpirationDate): New method. (ResourceSpec.getLastModified): New method. (ResourceSpec.getSize): New method. (ResourceSpec.getType): New method. (ResourceSpec.getUrl): New method. (ResourceSpec.getVersion): New method. (getCachedResources): New method. (getUpdateAvaiableReosurces): New method. * netx/javax/jnlp/IntegrationService.java: New interface. (hasAssociation): New method. (hasDesktopShortcut): New method. (hasMenuShortcut): New method. (removeAssociation): New method. (removeShortcuts): New method. (requestAssociation): New method. (requestShortcut): New method.
author Omair Majid <omajid@redhat.com>
date Thu, 18 Nov 2010 10:55:02 -0500
parents 4e288938e2a3
children fbd9bf9c90cb
files ChangeLog NEWS netx/javax/jnlp/DownloadService2.java netx/javax/jnlp/IntegrationService.java
diffstat 4 files changed, 100 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Tue Nov 16 13:45:43 2010 -0500
+++ b/ChangeLog	Thu Nov 18 10:55:02 2010 -0500
@@ -1,3 +1,26 @@
+2010-11-18  Omair Majid  <omajid@redhat.com>
+
+	* NEWS: Update with new interfaces
+	* netx/javax/jnlp/DownloadService2.java: New interface.
+	(ResourceSpec): New class.
+	(ResourceSpec.ResourceSpec): New method.
+	(ResourceSpec.getExpirationDate): New method.
+	(ResourceSpec.getLastModified): New method.
+	(ResourceSpec.getSize): New method.
+	(ResourceSpec.getType): New method.
+	(ResourceSpec.getUrl): New method.
+	(ResourceSpec.getVersion): New method.
+	(getCachedResources): New method.
+	(getUpdateAvaiableReosurces): New method.
+	* netx/javax/jnlp/IntegrationService.java: New interface.
+	(hasAssociation): New method.
+	(hasDesktopShortcut): New method.
+	(hasMenuShortcut): New method.
+	(removeAssociation): New method.
+	(removeShortcuts): New method.
+	(requestAssociation): New method.
+	(requestShortcut): New method.
+
 2010-11-16  Andrew Su  <asu@redhat.com>
 
 	* netx/net/sourceforge/jnlp/runtime/DeploymentConfiguration.java:
--- a/NEWS	Tue Nov 16 13:45:43 2010 -0500
+++ b/NEWS	Thu Nov 18 10:55:02 2010 -0500
@@ -13,3 +13,4 @@
 * Initial release of IcedTea-Web
 * PR542: Plugin fails with NPE on http://www.openprocessing.org/visuals/iframe.php?visualID=2615
 * Applets are now double-buffered to eliminate flicker in ones that do heavy drawing
+* Iinterfaces javax.jnlp.IntegrationService and javax.jnlp.DownloadService2 are now available
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/netx/javax/jnlp/DownloadService2.java	Thu Nov 18 10:55:02 2010 -0500
@@ -0,0 +1,57 @@
+package javax.jnlp;
+
+public interface DownloadService2 {
+
+    public static class ResourceSpec {
+
+        public static final long UNKNOWN = Long.MIN_VALUE;
+
+        protected String url;
+        protected String version;
+        protected int type;
+
+        public ResourceSpec(java.lang.String url, java.lang.String version, int type) {
+            this.url = url;
+            this.version = version;
+            this.type = type;
+        }
+
+        public long getExpirationDate() {
+            return UNKNOWN;
+        }
+
+        public long getLastModified() {
+            return UNKNOWN;
+        }
+
+        public long getSize() {
+            return UNKNOWN;
+        }
+
+        public int getType() {
+            return type;
+        }
+
+        public java.lang.String getUrl() {
+            return url;
+        }
+
+        public java.lang.String getVersion() {
+            return version;
+        }
+    }
+
+    public static final int ALL = 0;
+    public static final int APPLET = 2;
+    public static final int APPLICATION = 1;
+    public static final int CLASS = 6;
+    public static final int EXTENSION = 3;
+    public static final int IMAGE = 5;
+    public static final int JAR = 4;
+
+    public DownloadService2.ResourceSpec[] getCachedResources(
+            javax.jnlp.DownloadService2.ResourceSpec resourceSpec);
+
+    public DownloadService2.ResourceSpec[] getUpdateAvaiableReosurces(
+            javax.jnlp.DownloadService2.ResourceSpec resourceSpec);
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/netx/javax/jnlp/IntegrationService.java	Thu Nov 18 10:55:02 2010 -0500
@@ -0,0 +1,19 @@
+package javax.jnlp;
+
+public interface IntegrationService {
+
+    public boolean hasAssociation(java.lang.String mimeType, java.lang.String[] extensions);
+
+    public boolean hasDesktopShortcut();
+
+    public boolean hasMenuShortcut();
+
+    public boolean removeAssociation(java.lang.String mimeType, java.lang.String[] extensions);
+
+    public boolean removeShortcuts();
+
+    public boolean requestAssociation(java.lang.String mimeType, java.lang.String[] extensions);
+
+    public boolean requestShortcut(boolean onDesktop, boolean inMenu, java.lang.String subMenu);
+
+}