Class BlueprintURLHandler

  • All Implemented Interfaces:
    org.osgi.service.url.URLStreamHandlerService

    public class BlueprintURLHandler
    extends org.osgi.service.url.AbstractURLStreamHandlerService
    A URL handler that will transform a JBI artifact to an OSGi bundle on the fly. Needs to be registered in the OSGi registry.
    • Constructor Detail

      • BlueprintURLHandler

        public BlueprintURLHandler()
    • Method Detail

      • openConnection

        public URLConnection openConnection​(URL url)
                                     throws IOException
        Open the connection for the given URL.
        Specified by:
        openConnection in interface org.osgi.service.url.URLStreamHandlerService
        Specified by:
        openConnection in class org.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.