org.openqa.jetty.http
Class MultiPartResponse

java.lang.Object
  extended by org.openqa.jetty.http.MultiPartResponse
Direct Known Subclasses:
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(HttpResponse response)
          MultiPartResponse constructor.
MultiPartResponse(OutputStream out)
           
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MultiPartResponse

public MultiPartResponse(OutputStream out)
                  throws IOException
Throws:
IOException

MultiPartResponse

public MultiPartResponse(HttpResponse response)
                  throws IOException
MultiPartResponse constructor.

Throws:
IOException
Method Detail

getBoundary

public String getBoundary()

getOut

public OutputStream getOut()

startPart

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

Throws:
IOException

startPart

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

Throws:
IOException

close

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

Throws:
IOException - IOException


Copyright © 2012. All Rights Reserved.