public class IPOJOURLHandler
extends org.osgi.service.url.AbstractURLStreamHandlerService
implements org.osgi.service.url.URLStreamHandlerService
ipojo: URL
prefix, the bundle is downloaded and manipulated by this
handler.
The metadata.xml file can either be provided inside the bundle (root,
or in META-INF) or given in the URL:
ipojo:URL_BUNDLE!URL_METADATA.| Constructor and Description |
|---|
IPOJOURLHandler(org.osgi.framework.BundleContext bc)
Creates a IPOJOURLHandler.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
equals, getDefaultPort, getHostAddress, hashCode, hostsEqual, parseURL, sameFile, setURL, setURL, toExternalFormpublic IPOJOURLHandler(org.osgi.framework.BundleContext bc)
bc - the bundle contextpublic 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.