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 java.lang.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 |
---|---|
java.net.URLConnection |
openConnection(java.net.URL u)
This implementation looks up the bundle with the given
url set as location String within the current
BundleContext . |
public static final java.lang.String OBR_UPDATE_STRATEGY
public ObrURLStreamHandlerService(org.osgi.framework.BundleContext context, RepositoryAdmin admin)
context
- context to useadmin
- admin to usepublic java.net.URLConnection openConnection(java.net.URL u) throws java.io.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
java.io.IOException
Copyright © 2006-2017 The Apache Software Foundation. All Rights Reserved.