org.osgi.service.url.URLStreamHandlerService
public class ObrURLStreamHandlerService
extends org.osgi.service.url.AbstractURLStreamHandlerService
URLStreamHandler
which is able to handle
obr urls. The urls must be conform the following schema:
obr://Modifier and Type | Field | Description |
---|---|---|
static String |
OBR_UPDATE_STRATEGY |
Property defining the obr update strategy
|
Constructor | Description |
---|---|
ObrURLStreamHandlerService(org.osgi.framework.BundleContext context,
RepositoryAdmin admin) |
Constructor
|
Modifier and Type | Method | Description |
---|---|---|
URLConnection |
openConnection(URL u) |
This implementation looks up the bundle with the given
url set as location String within the current
BundleContext . |
equals, getDefaultPort, getHostAddress, hashCode, hostsEqual, parseURL, sameFile, setURL, setURL, toExternalForm
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
openConnection, parseURL
public static final String OBR_UPDATE_STRATEGY
public ObrURLStreamHandlerService(org.osgi.framework.BundleContext context, RepositoryAdmin admin)
context
- context to useadmin
- admin to usepublic URLConnection openConnection(URL u) throws IOException
BundleContext
.
The real url for this bundle is determined afterwards via the
RepositoryAdmin
.openConnection
in interface org.osgi.service.url.URLStreamHandlerService
openConnection
in class org.osgi.service.url.AbstractURLStreamHandlerService
IOException
Copyright © 2018. All rights reserved.