public class IPOJOURLHandler
extends org.osgi.service.url.AbstractURLStreamHandlerService
ipojo:file:///tmp/bundle.jar
ipojo:/http://www.example.org/bundle.jar
ipojo://mvn://com.acme/bundle/1.0.0 (with Maven Pax Url support installed)
ipojo:file:///tmp/bundle.jar!file:///tmp2/metadata.xml
Notice that trailing '/' (or '//') after ipojo: are optional.| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
IPOJO_SCHEME |
| Constructor and Description |
|---|
IPOJOURLHandler(org.osgi.framework.BundleContext bundleContext)
Creates a IPOJOURLHandler.
|
IPOJOURLHandler(org.osgi.framework.BundleContext context,
java.io.File work) |
| Modifier and Type | Method and Description |
|---|---|
void |
bindModule(Module module) |
java.net.URLConnection |
openConnection(java.net.URL url)
Opens a connection using the ipojo url handler.
|
void |
stop()
Stops the URL handler:
Deletes the working directory.
|
void |
unbindModule(Module module) |
public static final java.lang.String IPOJO_SCHEME
public IPOJOURLHandler(org.osgi.framework.BundleContext bundleContext)
bundleContext - the bundle contextpublic IPOJOURLHandler(org.osgi.framework.BundleContext context,
java.io.File work)
public void bindModule(Module module)
public void unbindModule(Module module)
public void stop()
public java.net.URLConnection openConnection(java.net.URL url)
throws java.io.IOException
openConnection in interface org.osgi.service.url.URLStreamHandlerServiceopenConnection in class org.osgi.service.url.AbstractURLStreamHandlerServiceurl - the url.java.io.IOException - occurs when the bundle cannot be either downloaded, or manipulated or
installed correctly.AbstractURLStreamHandlerService.openConnection(java.net.URL)Copyright © 2006-2014 The Apache Software Foundation. All Rights Reserved.