public static class DownloadService2.ResourceSpec
extends java.lang.Object
DownloadService2.getCachedResources(javax.jnlp.DownloadService2.ResourceSpec)
and
DownloadService2.getUpdateAvailableResources(javax.jnlp.DownloadService2.ResourceSpec)
. url
and version
properties, standard regular
expressions as documented in {code java.util.regex} are supported.Constructor and Description |
---|
ResourceSpec(java.lang.String url,
java.lang.String version,
int type)
Creates a new ResourceSpec instance.
|
Modifier and Type | Method and Description |
---|---|
long |
getExpirationDate()
Returns the time of expiration of the resource.
|
long |
getLastModified()
Returns the time of last modification of the resource.
|
long |
getSize()
Returns the size of a resource.
|
int |
getType()
Returns the type of this resource.
|
java.lang.String |
getUrl()
Returns the URL of this resource.
|
java.lang.String |
getVersion()
Returns the version of this resource.
|
public ResourceSpec(java.lang.String url, java.lang.String version, int type)
url
- the URL patternversion
- the version patterntype
- the resource type.
This should be one of the following constants defined in
DownloadService2: ALL, APPLICATION, APPLET, EXTENSION,
JAR, IMAGE, or CLASS.public java.lang.String getUrl()
public java.lang.String getVersion()
public int getType()
public long getSize()
DownloadService2.getCachedResources(javax.jnlp.DownloadService2.ResourceSpec)
or DownloadService2.getUpdateAvailableResources(javax.jnlp.DownloadService2.ResourceSpec)
.public long getLastModified()
0
means unknown.public long getExpirationDate()
0
means unknown.Copyright © 1998, 2024, Oracle and/or its affiliates. All rights reserved.