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, toExternalFormopenConnection, 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 © 2015. All Rights Reserved.