|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.mortbay.jetty.MultiPartResponse
public class MultiPartResponse
Handle a multipart MIME response.
Field Summary | |
---|---|
private static byte[] |
__CRLF
|
private static byte[] |
__DASHDASH
|
private String |
boundary
|
private byte[] |
boundaryBytes
|
private boolean |
inPart
|
private OutputStream |
out
PrintWriter to write content too. |
Constructor Summary | |
---|---|
private |
MultiPartResponse()
|
|
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 |
Field Detail |
---|
private static byte[] __CRLF
private static byte[] __DASHDASH
private String boundary
private byte[] boundaryBytes
private OutputStream out
private boolean inPart
Constructor Detail |
---|
private MultiPartResponse()
public MultiPartResponse(OutputStream out) throws IOException
IOException
Method Detail |
---|
public String getBoundary()
public OutputStream getOut()
public void startPart(String contentType) throws IOException
IOException
public void startPart(String contentType, String[] headers) throws IOException
IOException
public void close() throws IOException
IOException
- IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |