source: trunk/icedtea-web/netx/javax/jnlp/DownloadService2.java

Last change on this file was 348, checked in by dmik, 13 years ago

vendor: Add icedtea-web v1.1.2 to current.

File size: 1.4 KB
Line 
1package javax.jnlp;
2
3public interface DownloadService2 {
4
5 public static class ResourceSpec {
6
7 public static final long UNKNOWN = Long.MIN_VALUE;
8
9 protected String url;
10 protected String version;
11 protected int type;
12
13 public ResourceSpec(java.lang.String url, java.lang.String version, int type) {
14 this.url = url;
15 this.version = version;
16 this.type = type;
17 }
18
19 public long getExpirationDate() {
20 return UNKNOWN;
21 }
22
23 public long getLastModified() {
24 return UNKNOWN;
25 }
26
27 public long getSize() {
28 return UNKNOWN;
29 }
30
31 public int getType() {
32 return type;
33 }
34
35 public java.lang.String getUrl() {
36 return url;
37 }
38
39 public java.lang.String getVersion() {
40 return version;
41 }
42 }
43
44 public static final int ALL = 0;
45 public static final int APPLET = 2;
46 public static final int APPLICATION = 1;
47 public static final int CLASS = 6;
48 public static final int EXTENSION = 3;
49 public static final int IMAGE = 5;
50 public static final int JAR = 4;
51
52 public DownloadService2.ResourceSpec[] getCachedResources(
53 javax.jnlp.DownloadService2.ResourceSpec resourceSpec);
54
55 public DownloadService2.ResourceSpec[] getUpdateAvaiableReosurces(
56 javax.jnlp.DownloadService2.ResourceSpec resourceSpec);
57}
Note: See TracBrowser for help on using the repository browser.