org.jdesktop.wonderland.common
Class ArtURI

java.lang.Object
  extended by org.jdesktop.wonderland.common.AssetURI
      extended by org.jdesktop.wonderland.common.ModuleURI
          extended by org.jdesktop.wonderland.common.ArtURI
All Implemented Interfaces:
java.io.Serializable

public class ArtURI
extends ModuleURI

The ArtURI class uniquely identifies an art resource within a module in the sytem.

Author:
Jordan Slott
See Also:
Serialized Form

Constructor Summary
ArtURI(java.lang.String uri)
          Constructor which takes the string represents of the URI.
ArtURI(java.lang.String moduleName, java.lang.String hostNameAndPort, java.lang.String assetPath)
          Constructor which takes the module name, host name and host port, and asset path.
 
Method Summary
 java.lang.String getRelativePathInModule()
          Returns the relative path of the resource specified by the URI within the module.
 
Methods inherited from class org.jdesktop.wonderland.common.ModuleURI
equals, getAssetPath, getHostName, getHostPort, getModuleName, getProtocol, getRelativeCachePath, getServerURL, hashCode, setServerHostAndPort, toExternalForm, toString, toURL
 
Methods inherited from class org.jdesktop.wonderland.common.AssetURI
getURI, uriFactory
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ArtURI

public ArtURI(java.lang.String uri)
       throws java.net.URISyntaxException
Constructor which takes the string represents of the URI.

Parameters:
uri - The string URI representation
Throws:
java.net.URISyntaxException

ArtURI

public ArtURI(java.lang.String moduleName,
              java.lang.String hostNameAndPort,
              java.lang.String assetPath)
Constructor which takes the module name, host name and host port, and asset path. This host name and port is given as: :

Method Detail

getRelativePathInModule

public java.lang.String getRelativePathInModule()
Description copied from class: ModuleURI
Returns the relative path of the resource specified by the URI within the module. The relative path does not being with any forward "/". This method adds any directories before the relative asset path. This method should return all forward-slashes.

Specified by:
getRelativePathInModule in class ModuleURI
Returns:
The relative path within the URI


Open Wonderland - http://openwonderland.org