类 DynamicURLStreamHandlerFactory
java.lang.Object
ref.org.apache.commons.jnet.ParentAwareURLStreamHandlerFactory
ref.org.apache.commons.jnet.DynamicURLStreamHandlerFactory
- 所有已实现的接口:
URLStreamHandlerFactory
A dynamic url stream handler factory that stores the current delegate factory
in a thread local variable.
This allows to change the url handler factory at runtime dynamically through
the
push(URLStreamHandlerFactory) and pop() methods.-
字段概要
字段修饰符和类型字段说明protected static final ThreadLocal<URLStreamHandlerFactory>The thread local holding the current factory.从类继承的字段 ref.org.apache.commons.jnet.ParentAwareURLStreamHandlerFactory
parentFactory -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明protected URLStreamHandlerThis method can be overwritten by subclasses to instantiate url stream handlers for the given protocol.static voidpop()Pop the lastest url stream handler factory from the stack.static voidpush(URLStreamHandlerFactory factory) Push a url stream handler factory on top of the stack.从类继承的方法 ref.org.apache.commons.jnet.ParentAwareURLStreamHandlerFactory
createURLStreamHandler, getParent, setParentFactory
-
字段详细资料
-
FACTORY
The thread local holding the current factory.
-
-
构造器详细资料
-
DynamicURLStreamHandlerFactory
public DynamicURLStreamHandlerFactory()
-
-
方法详细资料
-
push
Push a url stream handler factory on top of the stack. -
pop
public static void pop()Pop the lastest url stream handler factory from the stack. -
create
从类复制的说明:ParentAwareURLStreamHandlerFactoryThis method can be overwritten by subclasses to instantiate url stream handlers for the given protocol.- 指定者:
create在类中ParentAwareURLStreamHandlerFactory- 参数:
protocol- The protocol.- 返回:
- A url stream handler for the protocol or null.
- 另请参阅:
-