private class FormHttpMessageConverter.MultipartHttpOutputMessage extends java.lang.Object implements HttpOutputMessage
HttpOutputMessage
used for writing multipart data.Modifier and Type | Field and Description |
---|---|
private HttpHeaders |
headers |
private boolean |
headersWritten |
private java.io.OutputStream |
os |
Constructor and Description |
---|
MultipartHttpOutputMessage(java.io.OutputStream os) |
Modifier and Type | Method and Description |
---|---|
protected 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 HttpHeaders headers
private final java.io.OutputStream os
private boolean headersWritten
public MultipartHttpOutputMessage(java.io.OutputStream os)
public HttpHeaders getHeaders()
HttpMessage
getHeaders
in interface HttpMessage
public java.io.OutputStream getBody() throws java.io.IOException
HttpOutputMessage
getBody
in interface HttpOutputMessage
java.io.IOException
- in case of I/O Errorsprivate void writeHeaders() throws java.io.IOException
java.io.IOException
protected byte[] getAsciiBytes(java.lang.String name)