|
Javassist 3.15.0-GA-redhat-2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavassist.tools.web.Webserver
javassist.tools.rmi.AppletServer
public class AppletServer
An AppletServer object is a web server that an ObjectImporter
communicates with. It makes the objects specified by
exportObject()
remotely accessible from applets.
If the classes of the exported objects are requested by the client-side
JVM, this web server sends proxy classes for the requested classes.
ObjectImporter
Field Summary |
---|
Fields inherited from class javassist.tools.web.Webserver |
---|
debugDir, htmlfileBase, translator |
Constructor Summary | |
---|---|
AppletServer(int port)
Constructs a web server. |
|
AppletServer(int port,
ClassPool src)
Constructs a web server. |
|
AppletServer(String port)
Constructs a web server. |
Method Summary | |
---|---|
void |
doReply(InputStream in,
OutputStream out,
String cmd)
Processes a request from a web browser (an ObjectImporter). |
int |
exportObject(String name,
Object obj)
Exports an object. |
void |
run()
Begins the HTTP service. |
Methods inherited from class javassist.tools.web.Webserver |
---|
addTranslator, end, logging, logging, logging, logging2, main, setClassPool |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AppletServer(String port) throws IOException, NotFoundException, CannotCompileException
port
- port number
IOException
NotFoundException
CannotCompileException
public AppletServer(int port) throws IOException, NotFoundException, CannotCompileException
port
- port number
IOException
NotFoundException
CannotCompileException
public AppletServer(int port, ClassPool src) throws IOException, NotFoundException, CannotCompileException
port
- port numbersrc
- the source of classs files.
IOException
NotFoundException
CannotCompileException
Method Detail |
---|
public void run()
run
in class Webserver
public int exportObject(String name, Object obj) throws CannotCompileException
name
- the name used for looking the object up.obj
- the exported object.
CannotCompileException
ObjectImporter.lookupObject(String)
public void doReply(InputStream in, OutputStream out, String cmd) throws IOException, BadHttpRequest
doReply
in class Webserver
out
- the output stream to a clientcmd
- the command received from a client
IOException
BadHttpRequest
|
Javassist 3.15.0-GA-redhat-2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |