|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object be.ugent.caagt.swirl.protocol.MappedURLStreamHandlerFactory
public class MappedURLStreamHandlerFactory
URLStreamHandlerFactory
which allows run time registration of new handlers.
This is mainly useful in those cases where it is not easy to configure new
protocols the standard way, i.e., by means of the
'java.protocol.handler.pkgs' system property.
URL.URL(String,String,int,String)
Constructor Summary | |
---|---|
MappedURLStreamHandlerFactory()
|
Method Summary | |
---|---|
java.net.URLStreamHandler |
createURLStreamHandler(java.lang.String protocol)
Return the handler associated wit the given protocol, or null if a default handler should be tried |
void |
install()
Request that this factory be used before the default factory for resolving URL's. |
void |
registerHandler(java.lang.String protocol,
java.net.URLStreamHandler handler)
Register a handler for a new protocol. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MappedURLStreamHandlerFactory()
Method Detail |
---|
public java.net.URLStreamHandler createURLStreamHandler(java.lang.String protocol)
createURLStreamHandler
in interface java.net.URLStreamHandlerFactory
public void registerHandler(java.lang.String protocol, java.net.URLStreamHandler handler)
public void install()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |