org.springframework.http.converter
Class FormHttpMessageConverter.MultipartHttpOutputMessage

java.lang.Object
  extended by 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.


Field Summary
private  HttpHeaders headers
           
private  boolean headersWritten
           
private  java.io.OutputStream os
           
 
Constructor Summary
FormHttpMessageConverter.MultipartHttpOutputMessage(java.io.OutputStream os)
           
 
Method Summary
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()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

headers

private final HttpHeaders headers

os

private final java.io.OutputStream os

headersWritten

private boolean headersWritten
Constructor Detail

FormHttpMessageConverter.MultipartHttpOutputMessage

public FormHttpMessageConverter.MultipartHttpOutputMessage(java.io.OutputStream os)
Method Detail

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)