- java.lang.Object
-
- de.carne.boot.ApplicationURLStreamHandlerFactories
-
- All Implemented Interfaces:
java.net.URLStreamHandlerFactory
public final class ApplicationURLStreamHandlerFactories extends java.lang.Object implements java.net.URLStreamHandlerFactoryURLStreamHandlerFactory implementation that supports multiple protocol handlers per VM by multiplexing the protocol specific requests.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description @Nullable java.net.URLStreamHandlercreateURLStreamHandler(@Nullable java.lang.String protocol)static @Nullable java.net.URLStreamHandlerFactoryregister(java.lang.String protocol, java.net.URLStreamHandlerFactory factory)Registers an additional protocol.
-
-
-
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
nullif the submitted protocol is registered for the first time.
-
createURLStreamHandler
public @Nullable java.net.URLStreamHandler createURLStreamHandler(@Nullable java.lang.String protocol)
- Specified by:
createURLStreamHandlerin interfacejava.net.URLStreamHandlerFactory
-
-