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.xmlNotice that trailing '/' (or '//') after ipojo: are optional.
Modifier and Type | Field and Description |
---|---|
static String |
IPOJO_SCHEME |
Constructor and Description |
---|
IPOJOURLHandler(org.osgi.framework.BundleContext bundleContext)
Creates a IPOJOURLHandler.
|
IPOJOURLHandler(org.osgi.framework.BundleContext context,
File work) |
Modifier and Type | Method and Description |
---|---|
void |
bindModule(org.apache.felix.ipojo.manipulator.spi.Module module) |
URLConnection |
openConnection(URL url)
Opens a connection using the ipojo url handler.
|
void |
stop()
Stops the URL handler:
Deletes the working directory.
|
void |
unbindModule(org.apache.felix.ipojo.manipulator.spi.Module module) |
equals, getDefaultPort, getHostAddress, hashCode, hostsEqual, parseURL, sameFile, setURL, setURL, toExternalForm
openConnection, parseURL
public static final String IPOJO_SCHEME
public IPOJOURLHandler(org.osgi.framework.BundleContext bundleContext)
bundleContext
- the bundle contextpublic IPOJOURLHandler(org.osgi.framework.BundleContext context, File work)
public void bindModule(org.apache.felix.ipojo.manipulator.spi.Module module)
public void unbindModule(org.apache.felix.ipojo.manipulator.spi.Module module)
public void stop()
public URLConnection openConnection(URL url) throws IOException
openConnection
in interface org.osgi.service.url.URLStreamHandlerService
openConnection
in class org.osgi.service.url.AbstractURLStreamHandlerService
url
- the url.IOException
- occurs when the bundle cannot be either downloaded, or manipulated or
installed correctly.AbstractURLStreamHandlerService.openConnection(java.net.URL)
Copyright © 2006–2023 The Apache Software Foundation. All rights reserved.