org.mortbay.http

Class MultiPartResponse

public class MultiPartResponse extends Object

Handle a multipart MIME response.

Version: $Id: MultiPartResponse.java,v 1.12 2006/04/04 22:28:02 gregwilkins Exp $

Author: Greg Wilkins Jim Crossley

Constructor Summary
MultiPartResponse(OutputStream out)
MultiPartResponse(HttpResponse response)
MultiPartResponse constructor.
Method Summary
voidclose()
End the current part.
StringgetBoundary()
OutputStreamgetOut()
voidstartPart(String contentType)
Start creation of the next Content.
voidstartPart(String contentType, String[] headers)
Start creation of the next Content.

Constructor Detail

MultiPartResponse

public MultiPartResponse(OutputStream out)

MultiPartResponse

public MultiPartResponse(HttpResponse response)
MultiPartResponse constructor.

Method Detail

close

public void close()
End the current part.

Throws: IOException IOException

getBoundary

public String getBoundary()

getOut

public OutputStream getOut()

startPart

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

startPart

public void startPart(String contentType, String[] headers)
Start creation of the next Content.
Copyright © 2004 Mortbay Consulting Pty. Ltd. All Rights Reserved.