Class OxygenURLStreamHandlerFactory

  • All Implemented Interfaces:
    java.net.URLStreamHandlerFactory

    @API(type=NOT_EXTENDABLE,
         src=PUBLIC)
    public class OxygenURLStreamHandlerFactory
    extends java.lang.Object
    implements java.net.URLStreamHandlerFactory
    The URLStreamHandlerFactory that handles all the protocols supported by Oxygen. It handles both builtin protocols and plugin-contributed ones.
    • Constructor Detail

      • OxygenURLStreamHandlerFactory

        public OxygenURLStreamHandlerFactory()
        Constructor.
      • OxygenURLStreamHandlerFactory

        public OxygenURLStreamHandlerFactory​(java.net.URLStreamHandlerFactory extraFactory)
        An extra factory which can be used to resolve extra protocols.
        Parameters:
        extraFactory - An extra factory which can be used to resolve extra protocols.
    • Method Detail

      • getBuiltinProtocols

        public static java.util.Set<java.lang.String> getBuiltinProtocols()
        Returns the list of built-in protocol names.
        Returns:
        The list of built-in protocol names.
      • createURLStreamHandler

        public java.net.URLStreamHandler createURLStreamHandler​(java.lang.String protocol)
        Specified by:
        createURLStreamHandler in interface java.net.URLStreamHandlerFactory
        See Also:
        URLStreamHandlerFactory.createURLStreamHandler(java.lang.String)