|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.foray.common.url.FOrayURLStreamHandlerFactory
public final class FOrayURLStreamHandlerFactory
URLStreamHandlerFactory implementation that allows custom protocols to be registered and accessed.
| Method Summary | |
|---|---|
URLStreamHandler |
createURLStreamHandler(String protocol)
|
static FOrayURLStreamHandlerFactory |
getURLStreamHandlerFactory()
Provides access to a custom URLStreamHandlerFactory instance, creating it and registering it with Java if needed. |
void |
registerProtocol(String protocol,
URLStreamHandler handler)
Registers a new URLStreamHandler for use with a protocol. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public URLStreamHandler createURLStreamHandler(String protocol)
createURLStreamHandler in interface URLStreamHandlerFactory
public void registerProtocol(String protocol,
URLStreamHandler handler)
URLStreamHandler for use with a protocol.
protocol - The protocol to be registered.
The registration will fail silently if this parameter is null.handler - The URLStreamHandler instance which should be
used for URLs whose protocol is protocol.
The registration will fail silently if this parameter is null.public static FOrayURLStreamHandlerFactory getURLStreamHandlerFactory()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||