|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.net.URLStreamHandler
net.sf.fikin.net.protocols.classpath.Handler
public class Handler
URL protocol handler supporting predefined list of classloaders to load the given resource.
Built-in logic uses following classloaders (in given order):
ClasspathStreamHandlerFactory.primaryClassLoader (if set)Handler's own classloaderOne can influence this logic by setting (at any moment of time)
ClasspathStreamHandlerFactory.primaryClassLoader to some desired
classloader.
created on Apr 28, 2005
| Constructor Summary | |
|---|---|
Handler()
|
|
| Method Summary | |
|---|---|
protected java.net.URL |
getResource(java.lang.String res)
Loks up a list of classloaders for the given resource. |
protected java.net.URL |
getSysResURL(java.net.URL u)
locate the resource in the context system resources |
protected java.net.URLConnection |
openConnection(java.net.URL u)
|
| Methods inherited from class java.net.URLStreamHandler |
|---|
equals, getDefaultPort, getHostAddress, hashCode, hostsEqual, openConnection, parseURL, sameFile, setURL, setURL, toExternalForm |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Handler()
| Method Detail |
|---|
protected java.net.URLConnection openConnection(java.net.URL u)
throws java.io.IOException
openConnection in class java.net.URLStreamHandlerjava.io.IOExceptionprotected java.net.URL getSysResURL(java.net.URL u)
java.lang.InternalError - if the resource is missingprotected java.net.URL getResource(java.lang.String res)
ClasspathStreamHandlerFactory.primaryClassLoader (if given)Handler's own classloader
res - to find
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||