org.mortbay.http
Class MultiPartResponse
java.lang.Object
|
+--org.mortbay.http.MultiPartResponse
- Direct Known Subclasses:
- MultiPartResponse
- public class MultiPartResponse
- extends java.lang.Object
Handle a multipart MIME response.
- Version:
- $Id: MultiPartResponse.java,v 1.1 2001/09/02 01:13:08 gregwilkins Exp $
- Author:
- Greg Wilkins, Jim Crossley
Method Summary |
void |
close()
End the current part. |
java.lang.String |
getBoundary()
|
java.io.OutputStream |
getOut()
|
void |
startPart(java.lang.String contentType)
Start creation of the next Content. |
void |
startPart(java.lang.String contentType,
java.lang.String[] headers)
Start creation of the next Content. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MultiPartResponse
public MultiPartResponse(HttpRequest request,
HttpResponse response)
throws java.io.IOException
- MultiPartResponse constructor.
- Parameters:
response
- The ServletResponse to which this multipart
response will be sent.
getBoundary
public java.lang.String getBoundary()
getOut
public java.io.OutputStream getOut()
startPart
public void startPart(java.lang.String contentType)
throws java.io.IOException
- Start creation of the next Content.
startPart
public void startPart(java.lang.String contentType,
java.lang.String[] headers)
throws java.io.IOException
- Start creation of the next Content.
close
public void close()
throws java.io.IOException
- End the current part.
- Parameters:
lastPart
- True if this is the last part- Throws:
java.io.IOException
- IOException
Copyright © 2000 Mortbay Consulting Pty. Ltd. All Rights Reserved.