org.springframework.http.converter
Class FormHttpMessageConverter.MultipartHttpOutputMessage
java.lang.Object
org.springframework.http.converter.FormHttpMessageConverter.MultipartHttpOutputMessage
- All Implemented Interfaces:
- HttpMessage, HttpOutputMessage
- Enclosing class:
- FormHttpMessageConverter
private class FormHttpMessageConverter.MultipartHttpOutputMessage
- extends java.lang.Object
- implements HttpOutputMessage
Implementation of HttpOutputMessage
used for writing multipart data.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
headers
private final HttpHeaders headers
os
private final java.io.OutputStream os
headersWritten
private boolean headersWritten
FormHttpMessageConverter.MultipartHttpOutputMessage
public FormHttpMessageConverter.MultipartHttpOutputMessage(java.io.OutputStream os)
getHeaders
public HttpHeaders getHeaders()
- Description copied from interface:
HttpMessage
- Return the headers of this message.
- Specified by:
getHeaders
in interface HttpMessage
- Returns:
- a corresponding HttpHeaders object
getBody
public java.io.OutputStream getBody()
throws java.io.IOException
- Description copied from interface:
HttpOutputMessage
- Return the body of the message as an output stream.
- Specified by:
getBody
in interface HttpOutputMessage
- Returns:
- the output stream body
- Throws:
java.io.IOException
- in case of I/O Errors
writeHeaders
private void writeHeaders()
throws java.io.IOException
- Throws:
java.io.IOException
getAsciiBytes
protected byte[] getAsciiBytes(java.lang.String name)