public interface DownloadService2
DownloadService
内のメソッドとともに使用すると、プログラムによる高度なキャッシュ管理が可能になります。修飾子と型 | インタフェースと説明 |
---|---|
static class |
DownloadService2.ResourceSpec
引数としてリソース問合せのパターンを指定し、結果を
getCachedResources(javax.jnlp.DownloadService2.ResourceSpec) およびgetUpdateAvailableResources(javax.jnlp.DownloadService2.ResourceSpec) に保持します。 |
修飾子と型 | フィールドと説明 |
---|---|
static int |
ALL
|
static int |
APPLET
|
static int |
APPLICATION
|
static int |
CLASS
|
static int |
EXTENSION
|
static int |
IMAGE
|
static int |
JAR
|
修飾子と型 | メソッドと説明 |
---|---|
DownloadService2.ResourceSpec[] |
getCachedResources(DownloadService2.ResourceSpec spec)
指定されたリソース仕様のいずれかに一致するキャッシュ内のすべてのリソースを返します。
|
DownloadService2.ResourceSpec[] |
getUpdateAvailableResources(DownloadService2.ResourceSpec spec)
指定されたリソース仕様のいずれかに一致し、かつサーバーから入手可能な更新を含むキャッシュ内のすべてのリソースを返します。
|
static final int ALL
getCachedResources(javax.jnlp.DownloadService2.ResourceSpec)
およびgetUpdateAvailableResources(javax.jnlp.DownloadService2.ResourceSpec)
内のすべてのリソースに一致します。static final int APPLICATION
getCachedResources(javax.jnlp.DownloadService2.ResourceSpec)
およびgetUpdateAvailableResources(javax.jnlp.DownloadService2.ResourceSpec)
内のアプリケーションに一致します。static final int APPLET
getCachedResources(javax.jnlp.DownloadService2.ResourceSpec)
およびgetUpdateAvailableResources(javax.jnlp.DownloadService2.ResourceSpec)
内のアプレットに一致します。static final int EXTENSION
getCachedResources(javax.jnlp.DownloadService2.ResourceSpec)
およびgetUpdateAvailableResources(javax.jnlp.DownloadService2.ResourceSpec)
内の拡張機能に一致します。static final int JAR
getCachedResources(javax.jnlp.DownloadService2.ResourceSpec)
およびgetUpdateAvailableResources(javax.jnlp.DownloadService2.ResourceSpec)
内のJARに一致します。static final int IMAGE
getCachedResources(javax.jnlp.DownloadService2.ResourceSpec)
およびgetUpdateAvailableResources(javax.jnlp.DownloadService2.ResourceSpec)
内のイメージ・ファイルに一致します。static final int CLASS
getCachedResources(javax.jnlp.DownloadService2.ResourceSpec)
およびgetUpdateAvailableResources(javax.jnlp.DownloadService2.ResourceSpec)
内のクラス・ファイルに一致します。DownloadService2.ResourceSpec[] getCachedResources(DownloadService2.ResourceSpec spec)
DownloadService2.ResourceSpec
を参照してください。返されるResourceSpec
オブジェクトには、特定のURLおよびバージョン・プロパティ(パターンなしなど)が含まれます。spec
- リソースと照合する仕様java.lang.IllegalArgumentException
- DownloadService2.ResourceSpec[] getUpdateAvailableResources(DownloadService2.ResourceSpec spec) throws java.io.IOException
DownloadService2.ResourceSpec
を参照してください。返されるResourceSpec
オブジェクトには、特定のURLおよびバージョン・プロパティ(パターンなしなど)が含まれます。spec
- リソースと照合する仕様java.io.IOException
- 更新のチェック中に何らかの異常が発生した場合java.lang.IllegalArgumentException
- Copyright © 1998, 2020, Oracle and/or its affiliates. All rights reserved.