de.agilecoders.wicket.webjars.util
Class ClasspathUrlStreamHandler

java.lang.Object
  extended by java.net.URLStreamHandler
      extended by de.agilecoders.wicket.webjars.util.ClasspathUrlStreamHandler

public class ClasspathUrlStreamHandler
extends URLStreamHandler

A URLStreamHandler that handles resources on the classpath.

Author:
miha

Constructor Summary
ClasspathUrlStreamHandler(ClassLoader... classLoaders)
          Construct.
 
Method Summary
protected  URLConnection openConnection(URL url)
           
 
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

ClasspathUrlStreamHandler

public ClasspathUrlStreamHandler(ClassLoader... classLoaders)
Construct.

Parameters:
classLoaders - The classloaders to find resources from.
Method Detail

openConnection

protected URLConnection openConnection(URL url)
                                throws IOException
Specified by:
openConnection in class URLStreamHandler
Throws:
IOException


Copyright © 2016 agilecoders.de. All Rights Reserved.