com.darwinsys.servlet
Class MultipartResponse

java.lang.Object
  extended by com.darwinsys.servlet.MultipartResponse

public class MultipartResponse
extends java.lang.Object

MultipartResponse lets a servlet generate "server push" responses, such as simple SHORT animations (if too long you run the server out of open files/sockets!).

Can be used freely under the O'Reilly Copyright terms, see http://www.oreilly.com/pub/a/oreilly/ask_tim/2001/codepolicy.html.

Author:
Jason Hunter, http://www.oreilly.com/catalog/jservlet2/

Constructor Summary
MultipartResponse(javax.servlet.http.HttpServletResponse response)
           
 
Method Summary
 void endResponse()
           
 void finish()
           
 java.io.PrintWriter getWriter()
           
 void startResponse(java.lang.String contentType)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MultipartResponse

public MultipartResponse(javax.servlet.http.HttpServletResponse response)
                  throws java.io.IOException
Throws:
java.io.IOException
Method Detail

startResponse

public void startResponse(java.lang.String contentType)
                   throws java.io.IOException
Throws:
java.io.IOException

endResponse

public void endResponse()
                 throws java.io.IOException
Throws:
java.io.IOException

finish

public void finish()
            throws java.io.IOException
Throws:
java.io.IOException

getWriter

public java.io.PrintWriter getWriter()


Copyright © 1996-2004 Ian F. Darwin. See license.html for usage license.