public class DynamicURLStreamHandlerFactory extends ParentAwareURLStreamHandlerFactory
push(URLStreamHandlerFactory) and pop() methods.| Modifier and Type | Field and Description |
|---|---|
protected static java.lang.ThreadLocal<java.net.URLStreamHandlerFactory> |
FACTORY
The thread local holding the current factory.
|
parentFactory| Constructor and Description |
|---|
DynamicURLStreamHandlerFactory() |
| Modifier and Type | Method and Description |
|---|---|
protected java.net.URLStreamHandler |
create(java.lang.String protocol)
This method can be overwritten by subclasses to instantiate url stream
handlers for the given protocol.
|
static void |
pop()
Pop the lastest url stream handler factory from the stack.
|
static void |
push(java.net.URLStreamHandlerFactory factory)
Push a url stream handler factory on top of the stack.
|
createURLStreamHandler, getParent, setParentFactoryprotected static final java.lang.ThreadLocal<java.net.URLStreamHandlerFactory> FACTORY
public static void push(java.net.URLStreamHandlerFactory factory)
public static void pop()
protected java.net.URLStreamHandler create(java.lang.String protocol)
ParentAwareURLStreamHandlerFactorycreate in class ParentAwareURLStreamHandlerFactoryprotocol - The protocol.ParentAwareURLStreamHandlerFactory.create(java.lang.String)Copyright © 2021. All Rights Reserved.