| 1 |
package javax.jnlp; |
| 2 |
|
| 3 |
public 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[] getUpdateAvailableResources( |
| 56 |
javax.jnlp.DownloadService2.ResourceSpec resourceSpec); |
| 57 |
} |