public class DynamicURLStreamHandlerFactory extends ParentAwareURLStreamHandlerFactory
push(URLStreamHandlerFactory) and pop() methods.| 限定符和类型 | 字段和说明 |
|---|---|
protected static java.lang.ThreadLocal<java.net.URLStreamHandlerFactory> |
FACTORY
The thread local holding the current factory.
|
parentFactory| 构造器和说明 |
|---|
DynamicURLStreamHandlerFactory() |
| 限定符和类型 | 方法和说明 |
|---|---|
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 在类中 ParentAwareURLStreamHandlerFactoryprotocol - The protocol.ParentAwareURLStreamHandlerFactory.create(java.lang.String)Copyright © 2022. All Rights Reserved.