org.osgi.service.url.URLStreamHandlerServicepublic 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, toExternalFormclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitopenConnection, parseURLpublic 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.URLStreamHandlerServiceopenConnection in class org.osgi.service.url.AbstractURLStreamHandlerServiceIOExceptionCopyright © 2018. All rights reserved.