Uploaded image for project: 'Felix'
  1. Felix
  2. FELIX-756

Allow URLStreamHandler services to override built-in handlers.

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • framework-1.2.2
    • framework-1.4.0
    • Framework
    • None

    Description

      In certain cases it might be desirable to override built-in URLStreamHandlers with services provided by bundles. As of now, the spec doesn't allow this (see 11.3.2 ff) but it might in the future. Furthermore, it looks like other implementations are less strict on this issue as we are. For now, the best one can do is to put handlers in the classpath of the framework and make them available via the java.protocol.handler.pkgs properties. This way, one can override the built-in handlers but needs control over the jvm (which is not the best solution).

      It should be possible to add an option to felix that will register handlers that proxy the built-in ones but prefer registered URLStreamHandler services if there is one available for a given schema.

      Attachments

        Activity

          People

            karlpauls Karl Pauls
            karlpauls Karl Pauls
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: