Class ObrURLStreamHandlerService
java.lang.Object
java.net.URLStreamHandler
org.osgi.service.url.AbstractURLStreamHandlerService
org.apache.felix.bundlerepository.impl.ObrURLStreamHandlerService
- All Implemented Interfaces:
org.osgi.service.url.URLStreamHandlerService
public class ObrURLStreamHandlerService
extends org.osgi.service.url.AbstractURLStreamHandlerService
Simple /
Example:
obr://org.apache.felix.javax.servlet/1240305961998
Update to the bundle is done
URLStreamHandler which is able to handle
obr urls. The urls must be conform the following schema:
obr://-
Field Summary
FieldsFields inherited from class org.osgi.service.url.AbstractURLStreamHandlerService
realHandler -
Constructor Summary
ConstructorsConstructorDescriptionObrURLStreamHandlerService(org.osgi.framework.BundleContext context, RepositoryAdmin admin) Constructor -
Method Summary
Modifier and TypeMethodDescriptionThis implementation looks up the bundle with the given url set as location String within the currentBundleContext.Methods inherited from class org.osgi.service.url.AbstractURLStreamHandlerService
equals, getDefaultPort, getHostAddress, hashCode, hostsEqual, parseURL, sameFile, setURL, setURL, toExternalFormMethods inherited from class URLStreamHandler
openConnection, parseURL
-
Field Details
-
OBR_UPDATE_STRATEGY
-
-
Constructor Details
-
ObrURLStreamHandlerService
Constructor- Parameters:
context- context to useadmin- admin to use
-
-
Method Details
-
openConnection
This implementation looks up the bundle with the given url set as location String within the currentBundleContext. The real url for this bundle is determined afterwards via theRepositoryAdmin.- Specified by:
openConnectionin interfaceorg.osgi.service.url.URLStreamHandlerService- Specified by:
openConnectionin classorg.osgi.service.url.AbstractURLStreamHandlerService- Throws:
IOException
-