|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ops4j.pax.runner.handler.internal.URLStreamHandlerExtender
public class URLStreamHandlerExtender
An extender that implements URLStreamHandlerFactory. Registers/unregisters URLStreamHandlerService as URLStreamHandler's. Note that this is not full proven URL Handler Service implementation. It does just enough to be used in runner.
URLStreamHandlerFactory| Constructor Summary | |
|---|---|
URLStreamHandlerExtender()
Creates a new extender. |
|
| Method Summary | |
|---|---|
java.net.URLStreamHandler |
createURLStreamHandler(java.lang.String protocol)
If there is a registred URLStreamHandlerService for the protocol the URLStreamHandlerService is returned, otherwise will return null, so the JVM will handle as defaut. |
void |
register(java.lang.String[] protocols,
org.osgi.service.url.URLStreamHandlerService urlStreamHandlerService)
Registres the URLStreamHandlerService as URLStreamHandler. |
void |
start()
Registres itself to URL as URLStreamHandlerFactory. |
void |
unregister(java.lang.String[] protocols)
Unregistres the URLStreamHandlerService as URLStreamHandler. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public URLStreamHandlerExtender()
| Method Detail |
|---|
public void start()
public void register(java.lang.String[] protocols,
org.osgi.service.url.URLStreamHandlerService urlStreamHandlerService)
protocols - an array of protocols handled by URLStreamHandlerServiceurlStreamHandlerService - an URLStreamHandlerServicepublic void unregister(java.lang.String[] protocols)
protocols - an array of protocols handled by URLStreamHandlerServicepublic java.net.URLStreamHandler createURLStreamHandler(java.lang.String protocol)
createURLStreamHandler in interface java.net.URLStreamHandlerFactoryURLStreamHandlerFactory.createURLStreamHandler(String)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||