org.jdesktop.wonderland.client.modules
Class ModuleUtils

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

public class ModuleUtils
extends java.lang.Object

Author:
jordanslott

Constructor Summary
ModuleUtils()
           
 
Method Summary
static ChecksumList fetchAssetChecksums(java.lang.String serverURL, java.lang.String moduleName, java.lang.String assetType)
          Asks the web server for the module's checksum information given the unique name of the module and a particular asset type, returns null if the module does not exist or upon some general I/O error.
static ModuleArtList fetchModuleArtList(java.lang.String serverURL, java.lang.String moduleName)
          Asks the web server for a list of all artwork assets in a given module.
static ChecksumList fetchModuleChecksums(java.lang.String serverURL, java.lang.String moduleName)
          Asks the web server for the module's checksum information given the unique name of the module, returns null if the module does not exist or upon some general I/O error.
static ModuleInfo fetchModuleInfo(java.lang.String serverURL, java.lang.String moduleName)
          Fetches the info for a particular module
static ModuleList fetchModuleList(java.lang.String serverURL)
          Asks the web server for a list of all modules.
static ModuleRepository fetchModuleRepositories(java.lang.String serverURL, java.lang.String moduleName)
          Asks the web server for the module's repository information given the unique name of the module, returns null if the module does not exist or upon some general I/O error.
static ModulePluginList fetchPluginJars(java.lang.String serverURL)
          Asks the web server for the module's plugin jar information that is necessary for the client.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ModuleUtils

public ModuleUtils()
Method Detail

fetchModuleInfo

public static ModuleInfo fetchModuleInfo(java.lang.String serverURL,
                                         java.lang.String moduleName)
Fetches the info for a particular module


fetchModuleList

public static ModuleList fetchModuleList(java.lang.String serverURL)
Asks the web server for a list of all modules. Returned is a ModuleList object with the basic module information (ModuleInfo) objects for all modules.

Returns:
A list of modules

fetchModuleArtList

public static ModuleArtList fetchModuleArtList(java.lang.String serverURL,
                                               java.lang.String moduleName)
Asks the web server for a list of all artwork assets in a given module. Returned is a ModuleArtList object identifying each object.

Parameters:
moduleName - The name of the module
Returns:
A list of module art

fetchModuleRepositories

public static ModuleRepository fetchModuleRepositories(java.lang.String serverURL,
                                                       java.lang.String moduleName)
Asks the web server for the module's repository information given the unique name of the module, returns null if the module does not exist or upon some general I/O error.

Parameters:
serverURL - The base web server URL
moduleName - The unique name of a module
Returns:
The repository information for a module

fetchModuleChecksums

public static ChecksumList fetchModuleChecksums(java.lang.String serverURL,
                                                java.lang.String moduleName)
Asks the web server for the module's checksum information given the unique name of the module, returns null if the module does not exist or upon some general I/O error.

Parameters:
serverURL - The base web server URL
moduleName - The unique name of a module
Returns:
The checksum information for a module

fetchAssetChecksums

public static ChecksumList fetchAssetChecksums(java.lang.String serverURL,
                                               java.lang.String moduleName,
                                               java.lang.String assetType)
Asks the web server for the module's checksum information given the unique name of the module and a particular asset type, returns null if the module does not exist or upon some general I/O error.

Parameters:
serverURL - The base web server URL
moduleName - The unique name of a module
assetType - The name of the asset type (art, audio, client, etc.)
Returns:
The checksum information for a module

fetchPluginJars

public static ModulePluginList fetchPluginJars(java.lang.String serverURL)
Asks the web server for the module's plugin jar information that is necessary for the client. This include the "client" and "common" jar files. Returns a ModulePluginList object upon succes, null upon error.

Returns:
The list of client and common plugin jars in all modules.


Open Wonderland - http://openwonderland.org