org.jdesktop.wonderland.common
Class JarURI

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

public class JarURI
extends ModuleURI

The JarURI class uniquely identifies a plugin jar resource within a module in the sytem.

Author:
Jordan Slott
See Also:
Serialized Form

Constructor Summary
JarURI()
          Default constructor
JarURI(java.lang.String uri)
          Constructor which takes the string represents of the URI.
JarURI(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

JarURI

public JarURI()
Default constructor


JarURI

public JarURI(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

JarURI

public JarURI(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