|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectclassUtils.javassist.URLClassPath
public class URLClassPath
A class search-path specified with URL (http).
ClassPath,
ClassPool.insertClassPath(ClassPath),
ClassPool.appendClassPath(ClassPath)| Constructor Summary | |
|---|---|
URLClassPath(java.lang.String host,
int port,
java.lang.String directory,
java.lang.String packageName)
Creates a search path specified with URL (http). |
|
| Method Summary | |
|---|---|
void |
close()
Closes this class path. |
static byte[] |
fetchClass(java.lang.String host,
int port,
java.lang.String directory,
java.lang.String classname)
Reads a class file on an http server. |
java.io.InputStream |
openClassfile(java.lang.String classname)
Opens a class file with http. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public URLClassPath(java.lang.String host,
int port,
java.lang.String directory,
java.lang.String packageName)
This search path is used only if a requested
class name starts with the name specified by packageName.
If packageName is "mypack" and a requested class is
"mypack.sub.Test", then the given URL is used for loading that class.
If packageName is null, the URL is used
for loading any class.
host - host nameport - port numberdirectory - directory name ending with "/".
It can be "/" (root directory).packageName - package name.| Method Detail |
|---|
public java.lang.String toString()
toString in class java.lang.Objectpublic java.io.InputStream openClassfile(java.lang.String classname)
openClassfile in interface ClassPathclassname - a fully-qualified class name
Translatorpublic void close()
close in interface ClassPath
public static byte[] fetchClass(java.lang.String host,
int port,
java.lang.String directory,
java.lang.String classname)
throws java.io.IOException
host - host nameport - port numberdirectory - directory name ending with "/".
It can be "/" (root directory).classname - fully-qualified class name
java.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||