org.jdesktop.wonderland.server.wfs.importer
Class CellImporterUtils

java.lang.Object
  extended by org.jdesktop.wonderland.server.wfs.importer.CellImporterUtils

public class CellImporterUtils
extends java.lang.Object

The CellImporterUtils contains a collection of static utility methods to load WFS information from the WFS web service.

Author:
Jordan Slott

Constructor Summary
CellImporterUtils()
           
 
Method Summary
static java.net.URL getWebServerURL()
          Returns the base URL of the web server.
static CellServerState getWFSCell(java.lang.String root, java.lang.String relativePath, java.lang.String name)
          Returns the cell's setup information, null upon error.
static CellList getWFSCells(java.lang.String root, boolean reload)
          Returns the list of cells in the WFS as a hashmap.
static CellList getWFSChildren(java.lang.String root, java.lang.String canonicalName)
          Returns the children of the WFS path.
static CellList getWFSRootChildren(java.lang.String root)
          Returns the children of the root WFS path, given the name of the WFS root.
static WorldRootList getWFSRoots()
          Returns all of the WFS root names or null upon error
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CellImporterUtils

public CellImporterUtils()
Method Detail

getWFSCells

public static CellList getWFSCells(java.lang.String root,
                                   boolean reload)
Returns the list of cells in the WFS as a hashmap. The list of cells is ordered so that parent cells appear before child cells. Takes the WFS URI of the WFS root.


getWFSCell

public static CellServerState getWFSCell(java.lang.String root,
                                         java.lang.String relativePath,
                                         java.lang.String name)
Returns the cell's setup information, null upon error. The relativePath argument must never begin with a "/". For a cell in the root path, use an empty string for the relative path argument


getWFSRootChildren

public static CellList getWFSRootChildren(java.lang.String root)
Returns the children of the root WFS path, given the name of the WFS root.


getWFSChildren

public static CellList getWFSChildren(java.lang.String root,
                                      java.lang.String canonicalName)
Returns the children of the WFS path. The relativePath argument must never begin with a "/".


getWFSRoots

public static WorldRootList getWFSRoots()
Returns all of the WFS root names or null upon error


getWebServerURL

public static java.net.URL getWebServerURL()
                                    throws java.net.MalformedURLException
Returns the base URL of the web server.

Throws:
java.net.MalformedURLException


Open Wonderland - http://openwonderland.org