Module de.carne
Package de.carne.boot

Class ApplicationURLStreamHandlerFactories

  • All Implemented Interfaces:
    java.net.URLStreamHandlerFactory

    public final class ApplicationURLStreamHandlerFactories
    extends java.lang.Object
    implements java.net.URLStreamHandlerFactory
    URLStreamHandlerFactory implementation that supports multiple protocol handlers per VM by multiplexing the protocol specific requests.
    See Also:
    register(String, URLStreamHandlerFactory)
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      @Nullable java.net.URLStreamHandler createURLStreamHandler​(@Nullable java.lang.String protocol)  
      static @Nullable java.net.URLStreamHandlerFactory register​(java.lang.String protocol, java.net.URLStreamHandlerFactory factory)
      Registers an additional protocol.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • register

        public static @Nullable java.net.URLStreamHandlerFactory register​(java.lang.String protocol,
                                                                          java.net.URLStreamHandlerFactory factory)
        Registers an additional protocol.
        Parameters:
        protocol - the protocol to register.
        factory - the URLStreamHandlerFactory handling the submitted protocol.
        Returns:
        the previously registered URLStreamHandlerFactory or null if the submitted protocol is registered for the first time.
      • createURLStreamHandler

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