org.jdesktop.wonderland.client.jme
Class WonderlandURLStreamHandlerFactory

java.lang.Object
  extended by org.jdesktop.wonderland.client.jme.WonderlandURLStreamHandlerFactory
All Implemented Interfaces:
java.net.URLStreamHandlerFactory

public class WonderlandURLStreamHandlerFactory
extends java.lang.Object
implements java.net.URLStreamHandlerFactory

Setup a URL stream handler for the Wonderland protocols. This works around the fact that URL will only find handlers loaded in the system classloader, and in webstart the handlers we need (wonderland.protocol.*) are in the jnlp classloader. Note if we return null here, it will go on to try the normal mechanisms defined in URL

Author:
jkaplan

Constructor Summary
WonderlandURLStreamHandlerFactory()
           
 
Method Summary
 java.net.URLStreamHandler createURLStreamHandler(java.lang.String protocol)
           
static void setHandlerPackage(java.lang.String handlerPackage)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WonderlandURLStreamHandlerFactory

public WonderlandURLStreamHandlerFactory()
Method Detail

setHandlerPackage

public static void setHandlerPackage(java.lang.String handlerPackage)

createURLStreamHandler

public java.net.URLStreamHandler createURLStreamHandler(java.lang.String protocol)
Specified by:
createURLStreamHandler in interface java.net.URLStreamHandlerFactory


Open Wonderland - http://openwonderland.org