org.jdesktop.wonderland.client.modules
Class ServerCache

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

public class ServerCache
extends java.lang.Object

A cache of all modules on a particular server

Author:
Jordan Slott

Constructor Summary
ServerCache(java.lang.String serverURL)
          Constructor, takes base URL of the server
 
Method Summary
 CachedModule getModule(java.lang.String moduleName)
          Returns a module given its unique name, or null if none exists.
static ServerCache getServerCache(java.lang.String serverURL)
          Returns an instance of the ServerCache object for the given server URL (http://:).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServerCache

public ServerCache(java.lang.String serverURL)
Constructor, takes base URL of the server

Method Detail

getServerCache

public static ServerCache getServerCache(java.lang.String serverURL)
Returns an instance of the ServerCache object for the given server URL (http://:). If the cache for the server does not exist yet, creates it.

Parameters:
serverURL - The base URL of the server
Returns:
The cache of information pertaining to the server

getModule

public CachedModule getModule(java.lang.String moduleName)
Returns a module given its unique name, or null if none exists.

Parameters:
moduleName - The unique name of the module
Returns:
The Module or null if none with the name exists


Open Wonderland - http://openwonderland.org