|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectuk.ac.starlink.util.CustomURLStreamHandlerFactory
public class 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(java.util.Map classMap)
Constructs a handler factory initialised with a given protocol->classname map. |
|
| Method Summary | |
|---|---|
java.net.URLStreamHandler |
createURLStreamHandler(java.lang.String protocol)
|
java.util.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(java.util.Map classMap)
classMap - handler class map| Method Detail |
|---|
public java.util.Map getHandlerClassMap()
public java.net.URLStreamHandler createURLStreamHandler(java.lang.String protocol)
createURLStreamHandler in interface java.net.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 | ||||||||