org.mortbay.http

Class MultiPartResponse

Known Direct Subclasses:
MultiPartResponse

public class MultiPartResponse
extends java.lang.Object

Handle a multipart MIME response.
Version:
$Id: MultiPartResponse.java,v 1.11 2005/08/13 00:01:24 gregwilkins Exp $
Authors:
Greg Wilkins
Jim Crossley

Constructor Summary

MultiPartResponse(OutputStream out)
MultiPartResponse(HttpResponse response)
MultiPartResponse constructor.

Method Summary

void
close()
End the current part.
String
getBoundary()
OutputStream
getOut()
void
startPart(String contentType)
Start creation of the next Content.
void
startPart(String contentType, String[] headers)
Start creation of the next Content.

Constructor Details

MultiPartResponse

public MultiPartResponse(OutputStream out)
            throws IOException

MultiPartResponse

public MultiPartResponse(HttpResponse response)
            throws IOException
MultiPartResponse constructor.

Method Details

close

public void close()
            throws IOException
End the current part.

getBoundary

public String getBoundary()

getOut

public OutputStream getOut()

startPart

public void startPart(String contentType)
            throws IOException
Start creation of the next Content.

startPart

public void startPart(String contentType,
                      String[] headers)
            throws IOException
Start creation of the next Content.

Copyright © 2004 Mortbay Consulting Pty. Ltd. All Rights Reserved.