|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.foray.common.url.AbstractProtocolRegistration
org.foray.common.url.FactoryProtocolRegistration
public class FactoryProtocolRegistration
An implementation of {#link ProtocolHandlerRegistry} which does not attempt
to use the "java.protocol.handler.pkgs" property to register new
URLStreamHandlers, but instead attempts to use only a
URLStreamHandlerFactory.
| Constructor Summary | |
|---|---|
FactoryProtocolRegistration()
Package-private constructor. |
|
| Method Summary | |
|---|---|
void |
doRegister(String protocol,
URLStreamHandler handler)
Actually does the registration. |
URLStreamHandler |
getURLStreamHandler(String protocol)
Finds the registered URLStreamHandler for a given protocol. |
boolean |
isValid()
Indicates whether the factory protocol registration is usable. |
| Methods inherited from class org.foray.common.url.AbstractProtocolRegistration |
|---|
registerProtocolHandler |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FactoryProtocolRegistration()
ProtocolRegistrationBroker.setStandardRegistrationStrategy(int)
to use this standard registration scheme.
| Method Detail |
|---|
public void doRegister(String protocol,
URLStreamHandler handler)
AbstractProtocolRegistration
protocol - The protocol to be registered.handler - The stream handler for the registered protocol.public boolean isValid()
public URLStreamHandler getURLStreamHandler(String protocol)
ProtocolRegistrationStrategy
protocol - The protocol for which a URLStreamHandler is desired.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||