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

java.lang.Object
  extended by java.net.URLStreamHandler
      extended by org.eclipse.osgi.framework.internal.core.BundleResourceHandler
          extended by org.eclipse.osgi.framework.internal.protocol.bundleresource.Handler

public class Handler
extends BundleResourceHandler

URLStreamHandler the bundleresource protocol.


Field Summary
 
Fields inherited from class org.eclipse.osgi.framework.internal.core.BundleResourceHandler
bundleEntry, context, SECURITY_AUTHORIZED
 
Constructor Summary
Handler()
          Constructor for a bundle protocol resource URLStreamHandler.
Handler(BundleEntry bundleEntry)
           
 
Method Summary
protected  BundleEntry findBundleEntry(java.net.URL url, AbstractBundle bundle)
          Finds the bundle entry for this protocal.
 
Methods inherited from class org.eclipse.osgi.framework.internal.core.BundleResourceHandler
checkAdminPermission, equals, getBundleClassLoader, getHostAddress, hashCode, hostsEqual, openConnection, parseURL, sameFile, setContext, toExternalForm
 
Methods inherited from class java.net.URLStreamHandler
getDefaultPort, openConnection, setURL, setURL
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Handler

public Handler()
Constructor for a bundle protocol resource URLStreamHandler.


Handler

public Handler(BundleEntry bundleEntry)
Method Detail

findBundleEntry

protected BundleEntry findBundleEntry(java.net.URL url,
                                      AbstractBundle bundle)
                               throws java.io.IOException
Description copied from class: BundleResourceHandler
Finds the bundle entry for this protocal. This is handled differently for Bundle.gerResource() and Bundle.getEntry() because getResource uses the bundle classloader and getEntry only used the base bundle file.

Specified by:
findBundleEntry in class BundleResourceHandler
Parameters:
url - The URL to find the BundleEntry for.
Returns:
the bundle entry
Throws:
java.io.IOException