private static class FormHttpMessageConverter.MultipartHttpOutputMessage extends java.lang.Object implements HttpOutputMessage
HttpOutputMessage used
to write a MIME multipart.| Modifier and Type | Field and Description |
|---|---|
private HttpHeaders |
headers |
private boolean |
headersWritten |
private java.io.OutputStream |
outputStream |
| Constructor and Description |
|---|
MultipartHttpOutputMessage(java.io.OutputStream outputStream) |
| Modifier and Type | Method and Description |
|---|---|
private byte[] |
getAsciiBytes(java.lang.String name) |
java.io.OutputStream |
getBody()
Return the body of the message as an output stream.
|
HttpHeaders |
getHeaders()
Return the headers of this message.
|
private void |
writeHeaders() |
private final java.io.OutputStream outputStream
private final HttpHeaders headers
private boolean headersWritten
public MultipartHttpOutputMessage(java.io.OutputStream outputStream)
public HttpHeaders getHeaders()
HttpMessagegetHeaders in interface HttpMessagenull)public java.io.OutputStream getBody()
throws java.io.IOException
HttpOutputMessagegetBody in interface HttpOutputMessagenull)java.io.IOException - in case of I/O Errorsprivate void writeHeaders()
throws java.io.IOException
java.io.IOExceptionprivate byte[] getAsciiBytes(java.lang.String name)