|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.starlink.util.CustomURLStreamHandlerFactory
Customisable implementation of URLStreamHandlerFactory
.
The handlers it can dispense are configured using a map; the keys of
the map are protocol names and its values are the names of classes
which implement URLStreamHandler
(and have no-arg
constructors).
URL
Constructor Summary | |
CustomURLStreamHandlerFactory()
Constructs a no-op handler factory. |
|
CustomURLStreamHandlerFactory(Map classMap)
Constructs a handler factory initialised with a given protocol->classname map. |
Method Summary | |
URLStreamHandler |
createURLStreamHandler(String protocol)
|
Map |
getHandlerClassMap()
Returns the protocol->>classname map that describes this factory. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public CustomURLStreamHandlerFactory()
public CustomURLStreamHandlerFactory(Map classMap)
Method Detail |
public Map getHandlerClassMap()
public URLStreamHandler createURLStreamHandler(String protocol)
createURLStreamHandler
in interface URLStreamHandlerFactory
|
Copyright © 2004 CLRC: Central Laboratory of the Research Councils. All rights reserved. | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |