org.openejb.util.proxy
Class ProxyClassLoader.ProxyByteCodeStreamHandler

java.lang.Object
  |
  +--java.net.URLStreamHandler
        |
        +--org.openejb.util.proxy.ProxyClassLoader.ProxyByteCodeStreamHandler
Enclosing class:
ProxyClassLoader

public class ProxyClassLoader.ProxyByteCodeStreamHandler
extends java.net.URLStreamHandler


Constructor Summary
ProxyClassLoader.ProxyByteCodeStreamHandler()
           
 
Method Summary
protected  java.net.URLConnection openConnection(java.net.URL u)
          Opens a connection to the object referenced by the URL argument.
 
Methods inherited from class java.net.URLStreamHandler
equals, getDefaultPort, getHostAddress, hashCode, hostsEqual, 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

ProxyClassLoader.ProxyByteCodeStreamHandler

public ProxyClassLoader.ProxyByteCodeStreamHandler()
Method Detail

openConnection

protected java.net.URLConnection openConnection(java.net.URL u)
                                         throws java.io.IOException
Opens a connection to the object referenced by the URL argument. This method should be overridden by a subclass.

If for the handler's protocol (such as HTTP or JAR), there exists a public, specialized URLConnection subclass belonging to one of the following packages or one of their subpackages: java.lang, java.io, java.util, java.net, the connection returned will be of that subclass. For example, for HTTP an HttpURLConnection will be returned, and for JAR a JarURLConnection will be returned.

Overrides:
openConnection in class java.net.URLStreamHandler
Parameters:
u - the URL that this connects to.
Returns:
a URLConnection object for the URL.
Throws:
java.io.IOException - if an I/O error occurs while opening the connection.