org.apache.geronimo.kernel.classloader
Class JarFileUrlStreamHandler

java.lang.Object
  extended by java.net.URLStreamHandler
      extended by org.apache.geronimo.kernel.classloader.JarFileUrlStreamHandler

public class JarFileUrlStreamHandler
extends URLStreamHandler


Constructor Summary
JarFileUrlStreamHandler(JarFile jarFile, JarEntry jarEntry)
           
 
Method Summary
static URL createUrl(JarFile jarFile, JarEntry jarEntry)
           
static URL createUrl(JarFile jarFile, JarEntry jarEntry, URL codeSource)
           
 URLConnection openConnection(URL url)
           
 void setExpectedUrl(URL expectedUrl)
           
 
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

JarFileUrlStreamHandler

public JarFileUrlStreamHandler(JarFile jarFile,
                               JarEntry jarEntry)
Method Detail

createUrl

public static URL createUrl(JarFile jarFile,
                            JarEntry jarEntry)
                     throws MalformedURLException
Throws:
MalformedURLException

createUrl

public static URL createUrl(JarFile jarFile,
                            JarEntry jarEntry,
                            URL codeSource)
                     throws MalformedURLException
Throws:
MalformedURLException

setExpectedUrl

public void setExpectedUrl(URL expectedUrl)

openConnection

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


Copyright © 2003-2008 The Apache Geronimo development community. All Rights Reserved.