Creates a search path specified with URL (http).
This search path is used only if a requested
class name starts with the name specified by packageName .
If packageName is "org.javassist." and a requested class is
"org.javassist.test.Main", then the given URL is used for loading that class.
The URLClassPath obtains a class file from:
http://www.javassist.org:80/java/classes/org/javassist/test/Main.class
Here, we assume that host is "www.javassist.org",
port is 80, and directory is "/java/classes/".
If packageName is null , the URL is used
for loading any class.
Parameters: host - host name Parameters: port - port number Parameters: directory - directory name ending with "/".It can be "/" (root directory).It must start with "/". Parameters: packageName - package name. It must end with "." (dot). |