public class ExtendableURLStreamHandlerFactory extends Object implements URLStreamHandlerFactory
URLStreamHandlerFactory instances within the same JVM.
Note: factories are registered on the best effort basis, those added too late may be ignored.| Constructor and Description |
|---|
ExtendableURLStreamHandlerFactory() |
| Modifier and Type | Method and Description |
|---|---|
static void |
add(URLStreamHandlerFactory handlerFactory,
String... protocols)
Registers a factory.
|
URLStreamHandler |
createURLStreamHandler(String protocol)
Called by the framework.
|
public static void add(URLStreamHandlerFactory handlerFactory, String... protocols)
handlerFactory - Factory.protocols - Protocols this factory should be used for. If none is specified, the factory
will be tried for any protocol for which a factory has not been explicitly specified.public URLStreamHandler createURLStreamHandler(String protocol)
createURLStreamHandler in interface URLStreamHandlerFactoryprotocol - Protocol.Copyright © 2023 LSST. All rights reserved.