public ResourceSpec(String url,
String version,
int type)
Creates a new ResourceSpec instance.
Parameters:
url - the URL pattern
version - the version pattern
type - the resource type.
This should be one of the following constants defined in
DownloadService2: ALL, APPLICATION, APPLET, EXTENSION,
JAR, IMAGE, or CLASS.
Returns the time of last modification of the resource.
The returned value has the same semantics as the return value of
System.currentTimeMillis().
A value of 0 means unknown.
Returns:
the time of last modification of the resource
getExpirationDate
public long getExpirationDate()
Returns the time of expiration of the resource.
The returned value has the same semantics as the return value of
System.currentTimeMillis().
A value of 0 means unknown.