Class FeatureURLHandler
- java.lang.Object
-
- java.net.URLStreamHandler
-
- org.osgi.service.url.AbstractURLStreamHandlerService
-
- org.apache.karaf.deployer.features.FeatureURLHandler
-
- All Implemented Interfaces:
org.osgi.service.url.URLStreamHandlerService
public class FeatureURLHandler extends org.osgi.service.url.AbstractURLStreamHandlerServiceURL handler for features
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classFeatureURLHandler.Connection
-
Constructor Summary
Constructors Constructor Description FeatureURLHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description URLgetFeatureXmlURL()URLConnectionopenConnection(URL url)Open the connection for the given URL.-
Methods inherited from class org.osgi.service.url.AbstractURLStreamHandlerService
equals, getDefaultPort, getHostAddress, hashCode, hostsEqual, parseURL, sameFile, setURL, setURL, toExternalForm
-
Methods inherited from class java.net.URLStreamHandler
openConnection, parseURL
-
-
-
-
Method Detail
-
openConnection
public URLConnection openConnection(URL url) throws IOException
Open the connection for the given URL.- Specified by:
openConnectionin interfaceorg.osgi.service.url.URLStreamHandlerService- Specified by:
openConnectionin classorg.osgi.service.url.AbstractURLStreamHandlerService- Parameters:
url- the url from which to open a connection.- Returns:
- a connection on the specified URL.
- Throws:
IOException- if an error occurs or if the URL is malformed.
-
getFeatureXmlURL
public URL getFeatureXmlURL()
-
-