com.ptc.wgmecad.client
Class HTTPClassLoader

java.lang.Object
  extended byjava.lang.ClassLoader
      extended bycom.ptc.wgmecad.client.HTTPClassLoader
All Implemented Interfaces:
DebugOptions

public class HTTPClassLoader
extends ClassLoader
implements DebugOptions


Nested Class Summary
 
Nested classes inherited from class java.lang.ClassLoader
 
Field Summary
private  String baseURL
           
private  Hashtable cache
           
 
Fields inherited from class java.lang.ClassLoader
 
Fields inherited from interface com.ptc.wgmecad.client.DebugOptions
DEBUG_HIGH, DEBUG_LOW
 
Constructor Summary
HTTPClassLoader(String baseURL)
           
 
Method Summary
 InputStream getResourceAsStream(String name)
           
 Class loadClass(String name, boolean resolve)
           
private  byte[] loadClassData(String name)
           
 
Methods inherited from class java.lang.ClassLoader
clearAssertionStatus, defineClass, defineClass, defineClass, definePackage, findClass, findLibrary, findLoadedClass, findResource, findResources, findSystemClass, getPackage, getPackages, getParent, getResource, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, loadClass, resolveClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

baseURL

private final String baseURL

cache

private Hashtable cache
Constructor Detail

HTTPClassLoader

public HTTPClassLoader(String baseURL)
Method Detail

loadClass

public Class loadClass(String name,
                       boolean resolve)
                throws ClassNotFoundException
Throws:
ClassNotFoundException

getResourceAsStream

public InputStream getResourceAsStream(String name)

loadClassData

private byte[] loadClassData(String name)
                      throws IOException
Throws:
IOException