Module java.jnlp
Package javax.jnlp

Class DownloadService2.ResourceSpec

    • Constructor Detail

      • ResourceSpec

        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.
    • Method Detail

      • getUrl

        public String getUrl​()
        Returns the URL of this resource.
        Returns:
        the URL of this resource
      • getVersion

        public String getVersion​()
        Returns the version of this resource.
        Returns:
        the version of this resource
      • getType

        public int getType​()
        Returns the type of this resource.
        Returns:
        the type of this resource
      • getLastModified

        public long getLastModified​()
        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.
        Returns:
        the time of expiration of the resource