org.jdesktop.wonderland.common
Class JarURIAdapter

java.lang.Object
  extended by javax.xml.bind.annotation.adapters.XmlAdapter<java.lang.String,JarURI>
      extended by org.jdesktop.wonderland.common.JarURIAdapter

public class JarURIAdapter
extends javax.xml.bind.annotation.adapters.XmlAdapter<java.lang.String,JarURI>

Adapter class to read asset uri's from XML files and insert the proper server name.

Author:
Jordan Slott

Constructor Summary
JarURIAdapter()
          Default constructor
JarURIAdapter(java.lang.String hostNameAndPort)
          Constructor takes the host name and port as: :
 
Method Summary
 java.lang.String marshal(JarURI jarURI)
           
 JarURI unmarshal(java.lang.String uri)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JarURIAdapter

public JarURIAdapter()
Default constructor


JarURIAdapter

public JarURIAdapter(java.lang.String hostNameAndPort)
Constructor takes the host name and port as: :

Method Detail

unmarshal

public JarURI unmarshal(java.lang.String uri)
                 throws java.lang.Exception
Specified by:
unmarshal in class javax.xml.bind.annotation.adapters.XmlAdapter<java.lang.String,JarURI>
Throws:
java.lang.Exception

marshal

public java.lang.String marshal(JarURI jarURI)
                         throws java.lang.Exception
Specified by:
marshal in class javax.xml.bind.annotation.adapters.XmlAdapter<java.lang.String,JarURI>
Throws:
java.lang.Exception


Open Wonderland - http://openwonderland.org