Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8168076

Consider adding a method to return the built-in URLStreamHandlerFactory

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P3 P3
    • None
    • 9
    • core-libs
    • None

      There are a number of frameworks that require to be able to "wrap" the JDK's built-in URLStreamHandler's. Such a method, as below or similar, could expose the built-in handler's to support this use-case.

      URL.java:

       /**
           * Returns a URLStreamHandlerFactory capable of creating instances of the
           * system's built-in URLStreamHandlers, for the given protocol.
           *
           * @param protocol the protocol
           * @return the factory
           */
          public static URLStreamHandlerFactory builtinStreamHandlerFactory(String protocol) {
              return defaultFactory;
          }

            chegar Chris Hegarty
            chegar Chris Hegarty
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: