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 and Description |
---|---|
static String |
OBR_UPDATE_STRATEGY
Property defining the obr update strategy
|
Constructor and Description |
---|
ObrURLStreamHandlerService(org.osgi.framework.BundleContext context,
RepositoryAdmin admin)
Constructor
|
Modifier and Type | Method and 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
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 © 2019. All rights reserved.