com.gargoylesoftware.htmlunit.html.applets
Class AppletClassLoader

java.lang.Object
  extended by java.lang.ClassLoader
      extended by java.security.SecureClassLoader
          extended by java.net.URLClassLoader
              extended by com.gargoylesoftware.htmlunit.html.applets.AppletClassLoader

public class AppletClassLoader
extends URLClassLoader

INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK.
Class loader for loading applets.

Version:
$Revision: 6719 $
Author:
Marc Guillemot, Ronald Brill

Constructor Summary
AppletClassLoader()
          The constructor.
 
Method Summary
 void addArchiveToClassPath(URL jarUrl)
          Adds the jar file to the classpath for the applet.
 void addClassToClassPath(String className, WebResponse webResponse)
          Adds the class defined by the WebResponse to the classpath for the applet.
 
Methods inherited from class java.net.URLClassLoader
addURL, definePackage, findClass, findResource, findResources, getPermissions, getURLs, newInstance, newInstance
 
Methods inherited from class java.security.SecureClassLoader
defineClass, defineClass
 
Methods inherited from class java.lang.ClassLoader
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findLibrary, findLoadedClass, findSystemClass, getPackage, getPackages, getParent, getResource, getResourceAsStream, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, loadClass, loadClass, resolveClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AppletClassLoader

public AppletClassLoader()
The constructor.

Method Detail

addArchiveToClassPath

public void addArchiveToClassPath(URL jarUrl)
Adds the jar file to the classpath for the applet.

Parameters:
jarUrl - the url of the jar file

addClassToClassPath

public void addClassToClassPath(String className,
                                WebResponse webResponse)
                         throws IOException
Adds the class defined by the WebResponse to the classpath for the applet.

Parameters:
className - the name of the class to load
webResponse - the web response
Throws:
IOException - in case of problem working with the response content


Copyright © 2002-2012 Gargoyle Software Inc.. All Rights Reserved.