org.jdesktop.wonderland.client.modules
Class RepositoryUtils

java.lang.Object
  extended by org.jdesktop.wonderland.client.modules.RepositoryUtils

public class RepositoryUtils
extends java.lang.Object

Utiility routines to aid dealing with repositories.

Author:
Jordan Slott

Constructor Summary
RepositoryUtils()
           
 
Method Summary
static java.lang.String getAssetURL(ModuleRepository.Repository repository, ModuleURI assetURI)
          Returns the full URL associated with the Asset to download from this repository.
static java.lang.String getChecksumURL(ModuleRepository.Repository repository)
          Returns the full URL assocaited with the Checksums for an asset repository.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RepositoryUtils

public RepositoryUtils()
Method Detail

getAssetURL

public static java.lang.String getAssetURL(ModuleRepository.Repository repository,
                                           ModuleURI assetURI)
Returns the full URL associated with the Asset to download from this repository.

Parameters:
repository - The asset repository from which to download
assetURI - The URI of the asset to download
Returns:
The full URL of the asset to download

getChecksumURL

public static java.lang.String getChecksumURL(ModuleRepository.Repository repository)
Returns the full URL assocaited with the Checksums for an asset repository. This method is used for asset repository that are located over the Internet and are not part of the web server which hosts the modules.

Returns:
The full URL to download the checksums


Open Wonderland - http://openwonderland.org