javatools.servlet
Class ServletAppletConnection

java.lang.Object
  |
  +--javatools.servlet.ServletAppletConnection

public class ServletAppletConnection
extends java.lang.Object

This class helps a Servlet establish an Object stream to an applet. This lets it communicate with an applet.


Field Summary
(package private)  java.io.ByteArrayOutputStream baos
           
(package private)  java.io.ObjectOutputStream os
           
(package private)  javax.servlet.http.HttpServletRequest req
           
(package private)  javax.servlet.http.HttpServletResponse res
           
 
Constructor Summary
ServletAppletConnection(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
           
 
Method Summary
 void close()
           
 java.io.ObjectInputStream openInput()
           
 java.io.ObjectOutputStream openOutput()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

req

javax.servlet.http.HttpServletRequest req

res

javax.servlet.http.HttpServletResponse res

baos

java.io.ByteArrayOutputStream baos

os

java.io.ObjectOutputStream os
Constructor Detail

ServletAppletConnection

public ServletAppletConnection(javax.servlet.http.HttpServletRequest req,
                               javax.servlet.http.HttpServletResponse res)
Method Detail

openInput

public java.io.ObjectInputStream openInput()
                                    throws java.io.IOException
java.io.IOException

openOutput

public java.io.ObjectOutputStream openOutput()
                                      throws java.io.IOException
java.io.IOException

close

public void close()
           throws java.io.IOException
java.io.IOException