com.optrak.tools.repository
Interface ResourceEntry

All Known Implementing Classes:
BasicResourceEntry, ResourceEntryCopy

public interface ResourceEntry

Properties of a resource for WebStart.


Field Summary
static char PATH_SEPARATOR
           
 
Method Summary
 java.lang.String getActualPath()
          Actual path in repository.
 java.util.Collection<java.lang.String> getArchitectures()
           
 Digest getDigest()
          Digest of this entry.
 long getLength()
          size of resource in bytes.
 java.util.Collection<java.lang.String> getLocales()
           
 java.lang.String getName()
          The last component of the path.
 java.util.Collection<java.lang.String> getOperatingSystems()
           
 java.lang.String getPath()
          logical path of resource.
 java.lang.String getVersion()
          Version of this entry.
 

Field Detail

PATH_SEPARATOR

static final char PATH_SEPARATOR
See Also:
Constant Field Values
Method Detail

getPath

java.lang.String getPath()
logical path of resource. The path together with the version uniquely identifies a resource. WebStart will use this path together with the version to retrieve the resource.

Returns:
path

getActualPath

java.lang.String getActualPath()
Actual path in repository. This is the path to the version represented by the entry. A client that does not support the JNLP version download protocol can retrieve this resource by using this path (relative to the root of the repository).

Returns:
actual path

getName

java.lang.String getName()
The last component of the path. This is probably redundant

Returns:
name

getVersion

java.lang.String getVersion()
Version of this entry. When submitting a resource, the repository creates a new version by appending another version component to this value.

Returns:
version

getLength

long getLength()
size of resource in bytes. For jar files this is the size of the unpacked file (before pack200 or gzip).

Returns:
size in bytes

getDigest

Digest getDigest()
Digest of this entry. We assume that every unique resource will have a unique digest. Although not guaranteed we are VERY unlikely to encounter two different resources with the same digest.

Returns:
digest

getOperatingSystems

java.util.Collection<java.lang.String> getOperatingSystems()

getArchitectures

java.util.Collection<java.lang.String> getArchitectures()

getLocales

java.util.Collection<java.lang.String> getLocales()