Additional top-level class in compilation unit: ExportedObject.
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.
javassist.tools.rmi.ObjectImporter
| Modifier and Type | Field and Description |
|---|---|
| private Map | |
| private List | |
| private static final byte[] | |
| private StubGenerator |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public | |
| private |
| Modifier and Type | Method and Description |
|---|---|
| private Object | |
| public void | doReply(InputStream in, OutputStream
the output stream to a client out, String the command received from a client cmd)Overrides javassist. Processes a request from a web browser (an ObjectImporter). |
| public synchronized int | Returns: the object identifierthe name used for looking the object up. name, Object the exported object. obj)Exports an object. |
| private void | |
| private void | |
| private Object[] | |
| public void |
| exportedNames | back to summary |
|---|---|
| private Map<String, ExportedObject> exportedNames | |
| exportedObjects | back to summary |
|---|---|
| private List<ExportedObject> exportedObjects | |
| okHeader | back to summary |
|---|---|
| private static final byte[] okHeader | |
| stubGen | back to summary |
|---|---|
| private StubGenerator stubGen | |
| AppletServer | back to summary |
|---|---|
| public AppletServer(String port) throws IOException, NotFoundException, CannotCompileException Constructs a web server.
| |
| AppletServer | back to summary |
|---|---|
| public AppletServer(int port) throws IOException, NotFoundException, CannotCompileException Constructs a web server.
| |
| AppletServer | back to summary |
|---|---|
| public AppletServer(int port, ClassPool src) throws IOException, NotFoundException, CannotCompileException Constructs a web server.
| |
| AppletServer | back to summary |
|---|---|
| private AppletServer(ClassPool loader, StubGenerator gen, int port) throws IOException, NotFoundException, CannotCompileException | |
| convertRvalue | back to summary |
|---|---|
| private Object convertRvalue(Object rvalue) throws CannotCompileException | |
| doReply | back to summary |
|---|---|
| public void doReply(InputStream in, OutputStream out, String cmd) throws IOException, BadHttpRequest Overrides javassist. Processes a request from a web browser (an ObjectImporter).
| |
| exportObject | back to summary |
|---|---|
| public synchronized int exportObject(String name, Object obj) throws CannotCompileException Exports an object. This method produces the bytecode of the proxy class used to access the exported object. A remote applet can load the proxy class and call a method on the exported object.
| |
| lookupName | back to summary |
|---|---|
| private void lookupName(String cmd, InputStream ins, OutputStream outs) throws IOException | |
| processRMI | back to summary |
|---|---|
| private void processRMI(InputStream ins, OutputStream outs) throws IOException | |
| readParameters | back to summary |
|---|---|
| private Object[] readParameters(ObjectInputStream in) throws IOException, ClassNotFoundException | |
| run | back to summary |
|---|---|
| public void run() Overrides javassist. Begins the HTTP service.
| |