public class URLStreamHandlerFactory extends Object implements URLStreamHandlerFactory
This factory is installed by the default server implementaion to ensure that protocol handlers not in the system classpath are located. The thread context class is used first followed by the Class.forName method.
Modifier and Type | Field and Description |
---|---|
static String |
PACKAGE_PREFIX
The package prefix where JBoss protocol handlers live.
|
static String[] |
PROTOCOLS
A list of JBoss specific protocols for preloading.
|
Constructor and Description |
---|
URLStreamHandlerFactory() |
Modifier and Type | Method and Description |
---|---|
static void |
clear()
Clear the current protocol to handler map.
|
URLStreamHandler |
createURLStreamHandler(String protocol)
Search the handlerPkgs for URLStreamHandler classes matching the
pkg + protocol + ".Handler" naming convention.
|
static void |
preload()
Preload the JBoss specific protocol handlers, so that URL knows about
them even if the handler factory is changed.
|
public static final String PACKAGE_PREFIX
public static final String[] PROTOCOLS
public static void preload()
public static void clear()
public URLStreamHandler createURLStreamHandler(String protocol)
createURLStreamHandler
in interface URLStreamHandlerFactory
protocol
- The protocol to create a stream handler forCopyright © 2018 JBoss by Red Hat. All rights reserved.