org.eclipse.osgi.framework.internal.protocol.reference
Class Handler

java.lang.Object
  extended by java.net.URLStreamHandler
      extended by org.eclipse.osgi.framework.internal.protocol.reference.Handler

public class Handler
extends java.net.URLStreamHandler

URLStreamHandler for reference protocol. A reference URL is used to hold a reference to a local file URL. A reference URL allows bundles to be installed by reference. This means the content of the bundle will not be copied. Instead the content of the bundle will be loaded from the reference location specified by the reference URL. The Framework only supports reference URLs that refer to a local file URL. For example:

     reference:file:/eclipse/plugins/org.eclipse.myplugin_1.0.0/
     reference:file:/eclispe/plugins/org.eclipse.mybundle_1.0.0.jar
 


Constructor Summary
Handler()
           
 
Method Summary
protected  java.net.URLConnection openConnection(java.net.URL url)
           
protected  void parseURL(java.net.URL url, java.lang.String str, int start, int end)
           
 
Methods inherited from class java.net.URLStreamHandler
equals, getDefaultPort, getHostAddress, hashCode, hostsEqual, openConnection, sameFile, setURL, setURL, toExternalForm
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Handler

public Handler()
Method Detail

openConnection

protected java.net.URLConnection openConnection(java.net.URL url)
                                         throws java.io.IOException
Specified by:
openConnection in class java.net.URLStreamHandler
Throws:
java.io.IOException

parseURL

protected void parseURL(java.net.URL url,
                        java.lang.String str,
                        int start,
                        int end)
Overrides:
parseURL in class java.net.URLStreamHandler