public interface DownloadService2
DownloadService
, this allows for advanced
programmatic cache management.Modifier and Type | Interface and Description |
---|---|
static class |
DownloadService2.ResourceSpec
Specifies patterns for resource queries as arguments and holds
results in
getCachedResources(javax.jnlp.DownloadService2.ResourceSpec) and
getUpdateAvailableResources(javax.jnlp.DownloadService2.ResourceSpec) . |
Modifier and Type | Field and Description |
---|---|
static int |
ALL
|
static int |
APPLET
|
static int |
APPLICATION
|
static int |
CLASS
|
static int |
EXTENSION
|
static int |
IMAGE
|
static int |
JAR
|
Modifier and Type | Method and Description |
---|---|
DownloadService2.ResourceSpec[] |
getCachedResources(DownloadService2.ResourceSpec spec)
Returns all resources in the cache that match one of the specified
resource specs.
|
DownloadService2.ResourceSpec[] |
getUpdateAvailableResources(DownloadService2.ResourceSpec spec)
Returns all resources in the cache that match one of the specified
resource specs AND have an update available from their server.
|
static final int ALL
getCachedResources(javax.jnlp.DownloadService2.ResourceSpec)
and getUpdateAvailableResources(javax.jnlp.DownloadService2.ResourceSpec)
.static final int APPLICATION
getCachedResources(javax.jnlp.DownloadService2.ResourceSpec)
and getUpdateAvailableResources(javax.jnlp.DownloadService2.ResourceSpec)
.static final int APPLET
getCachedResources(javax.jnlp.DownloadService2.ResourceSpec)
and getUpdateAvailableResources(javax.jnlp.DownloadService2.ResourceSpec)
.static final int EXTENSION
getCachedResources(javax.jnlp.DownloadService2.ResourceSpec)
and getUpdateAvailableResources(javax.jnlp.DownloadService2.ResourceSpec)
.static final int JAR
getCachedResources(javax.jnlp.DownloadService2.ResourceSpec)
and getUpdateAvailableResources(javax.jnlp.DownloadService2.ResourceSpec)
.static final int IMAGE
getCachedResources(javax.jnlp.DownloadService2.ResourceSpec)
and getUpdateAvailableResources(javax.jnlp.DownloadService2.ResourceSpec)
.static final int CLASS
getCachedResources(javax.jnlp.DownloadService2.ResourceSpec)
and getUpdateAvailableResources(javax.jnlp.DownloadService2.ResourceSpec)
.DownloadService2.ResourceSpec[] getCachedResources(DownloadService2.ResourceSpec spec)
DownloadService2.ResourceSpec
. The returned ResourceSpec
objects
have specific URL and version properties (i.e. no patterns). spec
- the spec to match resources against java.lang.IllegalArgumentException
- DownloadService2.ResourceSpec[] getUpdateAvailableResources(DownloadService2.ResourceSpec spec) throws java.io.IOException
DownloadService2.ResourceSpec
. The returned ResourceSpec
objects
have specific URL and version properties (i.e. no patterns). spec
- the spec to match resources againstjava.io.IOException
- if something went wrong during update checksjava.lang.IllegalArgumentException
- Copyright © 1998, 2015, Oracle and/or its affiliates. All rights reserved.