|
||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||
java.lang.Objectjavax.jnlp.DownloadService2.ResourceSpec
public static class DownloadService2.ResourceSpec
Specifies patterns for resource queries as arguments and holds
results in DownloadService2.getCachedResources(javax.jnlp.DownloadService2.ResourceSpec) and
DownloadService2.getUpdateAvailableResources(javax.jnlp.DownloadService2.ResourceSpec).
For the url and version properties, standard regular
expressions as documented in {code java.util.regex} are supported.
| Constructor Summary | |
|---|---|
DownloadService2.ResourceSpec(java.lang.String url,
java.lang.String version,
int type)
Creates a new ResourceSpec instance. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DownloadService2.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.| Method Detail |
|---|
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.
|
||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||