aboutsummaryrefslogtreecommitdiffstats
path: root/netx/javax
diff options
context:
space:
mode:
Diffstat (limited to 'netx/javax')
-rw-r--r--netx/javax/jnlp/DownloadService2.java57
-rw-r--r--netx/javax/jnlp/IntegrationService.java19
2 files changed, 76 insertions, 0 deletions
diff --git a/netx/javax/jnlp/DownloadService2.java b/netx/javax/jnlp/DownloadService2.java
new file mode 100644
index 0000000..3180c1f
--- /dev/null
+++ b/netx/javax/jnlp/DownloadService2.java
@@ -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);
+}
diff --git a/netx/javax/jnlp/IntegrationService.java b/netx/javax/jnlp/IntegrationService.java
new file mode 100644
index 0000000..4184f1c
--- /dev/null
+++ b/netx/javax/jnlp/IntegrationService.java
@@ -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);
+
+}