|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Repository
Store unique resources for WebStart. Manage the versioning of WebStart resources.
| Field Summary | |
|---|---|
static int |
NAME_BASE_VERSION
File name in the repository includes the base version, but not the extra bit added by the repository. |
static int |
NAME_UNCHANGED
File name in the repository is as submitted. |
static int |
NAME_VERSIONED
File name in the repository includes the full version. |
static int |
PACK_200
Try PACK-200 compression. |
static int |
PACK_GZ
Try GZIP compression of jar files |
static int |
SIGN_JARS
Sign any jar file submitted with the repository signature. |
static int |
VERSION_AS_GIVEN
Override automatic version assignment. |
| Method Summary | |
|---|---|
NewEntry |
addEntry(UserIdentity id,
ResourceEntry entry)
Offer new resource with default options. |
NewEntry |
addEntry(UserIdentity id,
ResourceEntry entry,
int options)
Offer a new resource to the repository. |
void |
flush()
Ensure repository changes are flushed to disk. |
java.lang.String |
getDigestAlgorithm()
get Digest algorithm used for all resources. |
ResourceEntry[] |
getEntries(java.lang.String path)
Enumerate entries with specified path. |
ResourceEntry |
getEntry(Digest digest)
Find entry with specified digest. |
ResourceEntry |
getEntry(java.lang.String path,
Digest digest)
Lookup entry with specified path and digest |
java.net.URI |
getURI()
Location of the repository |
java.lang.String[] |
listChildren(java.lang.String path)
List child directories. |
java.lang.String[] |
listNames(java.lang.String path)
List names of entries. |
UserIdentity |
newIdentity(java.lang.String user,
java.lang.String machine)
create an identity object. |
| Field Detail |
|---|
static final int NAME_VERSIONED
static final int NAME_UNCHANGED
static final int NAME_BASE_VERSION
static final int VERSION_AS_GIVEN
static final int SIGN_JARS
static final int PACK_200
static final int PACK_GZ
| Method Detail |
|---|
UserIdentity newIdentity(java.lang.String user,
java.lang.String machine)
throws java.rmi.RemoteException
user - name of the usermachine - name of the machine
java.rmi.RemoteException
java.net.URI getURI()
throws java.rmi.RemoteException
java.rmi.RemoteException
java.lang.String getDigestAlgorithm()
throws java.rmi.RemoteException
java.rmi.RemoteException
ResourceEntry getEntry(Digest digest)
throws java.io.IOException
digest - Digest of required entry.
java.io.IOException
ResourceEntry getEntry(java.lang.String path,
Digest digest)
throws java.io.IOException
path - entry must match this pathdigest - entry must have this digest
java.io.IOException
ResourceEntry[] getEntries(java.lang.String path)
throws java.io.IOException
path - path of entries
java.io.IOException
NewEntry addEntry(UserIdentity id,
ResourceEntry entry)
throws java.io.IOException
id - identity of user submitting resourceentry - Details of the resource to be submitted. The path, version and digest attributes must be set.
java.io.IOException
NewEntry addEntry(UserIdentity id,
ResourceEntry entry,
int options)
throws java.io.IOException
options parameter should probably be replaced by two parameters; an enum for the name
handling choice, and an EnumSet for the other options.
id - identity of user submitting resourceentry - Details of the resource to be submitted. The path, version and digest attributes must be set.options - At most one of NAME_*, plus any combination of the other options.
java.io.IOException
void flush()
throws java.io.IOException
java.io.IOException - if there are errors writing to disk
java.lang.String[] listNames(java.lang.String path)
throws java.io.IOException
path - directory to list, null or "" to list the root of the repository
java.io.IOException - if the path does not exist
java.lang.String[] listChildren(java.lang.String path)
throws java.io.IOException
path - directory for which to list subdirectories, null or "" to list the root of the repository
java.io.IOException - if the path does not exist
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||