|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.optrak.tools.repository.client.RepositoryUpdater
public class RepositoryUpdater
Update a JNLP repository. Submits all resources referenced (recursively) by a JNLP file to the repository. References in JNLP files are updated with the version and size. References to icons also get the height, width and depth attributes set.
The action taken for each type of file can be configured. The standard behaviour is as follows:
| jnlp/application | NAME_BASE_VERSION |
| jnlp/applet | NAME_BASE_VERSION |
| jnlp/component | NAME_VERSIONED |
| jnlp/installer | NAME_VERSIONED |
| jar | NAME_VERSIONED PACK_200 PACK_GZ |
| html | NAME_UNCHANGED |
| default | NAME_VERSIONED |
This behaviour can be modified by deploy.properties files in the source directories. The properties inherit the properties of containing directories and the default properties.
| Constructor Summary | |
|---|---|
RepositoryUpdater(Repository repository)
|
|
| Method Summary | |
|---|---|
void |
clearResourceCache()
Clear cached data. |
java.io.File |
findLocalResource(java.lang.String path)
|
java.lang.String |
getDefaultVersion()
Base version for submitted resources. |
UserIdentity |
getIdentity()
|
Repository |
getRepository()
|
java.util.List<java.io.File> |
getResourceSearchPath()
|
void |
setDefaultVersion(java.lang.String ver)
|
void |
setIdentity(UserIdentity id)
|
void |
setResourceSearchPath(java.util.List<java.io.File> path)
List of places to search for resources. |
ResourceEntry |
submit(java.io.File source,
java.lang.String path)
Submit a resource from a specified file. |
ResourceEntry |
submit(java.lang.String path)
Submit a resource. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RepositoryUpdater(Repository repository)
throws java.security.NoSuchAlgorithmException,
java.rmi.RemoteException
java.security.NoSuchAlgorithmException
java.rmi.RemoteException| Method Detail |
|---|
public Repository getRepository()
public void setIdentity(UserIdentity id)
public UserIdentity getIdentity()
public void clearResourceCache()
public java.lang.String getDefaultVersion()
public void setDefaultVersion(java.lang.String ver)
public void setResourceSearchPath(java.util.List<java.io.File> path)
path - public java.util.List<java.io.File> getResourceSearchPath()
public java.io.File findLocalResource(java.lang.String path)
throws java.io.FileNotFoundException
java.io.FileNotFoundException
public ResourceEntry submit(java.lang.String path)
throws java.io.IOException
path -
java.io.IOException
public ResourceEntry submit(java.io.File source,
java.lang.String path)
throws java.io.IOException
source - file containing the resourcepath - Intended path in the repository.
java.io.IOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||