|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.foray.common.url.UniversalProtocolRegistration
public class UniversalProtocolRegistration
Registers URL protocols in a universal manner, attempting first to register
using a URLStreamHandlerFactory, then using the Java properties
method as a fallback.
which registers using only the
{@link URLStreamHandlerFactory} scheme.,
which registers using only the Java
properties scheme.| Method Summary | |
|---|---|
URLStreamHandler |
getURLStreamHandler(String protocol)
Finds the registered URLStreamHandler for a given protocol. |
void |
registerProtocolHandler(String protocol,
URLStreamHandler handler)
Registers a URLStreamHandler for the given protocol. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public void registerProtocolHandler(String protocol,
URLStreamHandler handler)
ProtocolRegistrationStrategy
registerProtocolHandler in interface ProtocolRegistrationStrategyprotocol - The protocol to be registered.handler - The URLStreamHandler instance which should be
used for URLs whose protocol is protocol.public URLStreamHandler getURLStreamHandler(String protocol)
ProtocolRegistrationStrategy
getURLStreamHandler in interface ProtocolRegistrationStrategyprotocol - The protocol for which a URLStreamHandler is desired.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||