org.springframework.http
Interface HttpOutputMessage

All Superinterfaces:
HttpMessage
All Known Subinterfaces:
ClientHttpRequest, ServerHttpResponse
All Known Implementing Classes:
AbstractBufferingClientHttpRequest, AbstractClientHttpRequest, BufferingClientHttpRequestWrapper, CommonsClientHttpRequest, FormHttpMessageConverter.MultipartHttpOutputMessage, HttpComponentsClientHttpRequest, InterceptingClientHttpRequest, ServletServerHttpResponse, SimpleBufferingClientHttpRequest, SimpleStreamingClientHttpRequest

public interface HttpOutputMessage
extends HttpMessage

Represents an HTTP output message, consisting of headers and a writable body.

Typically implemented by an HTTP request on the client-side, or a response on the server-side.

Since:
3.0
Author:
Arjen Poutsma

Method Summary
 java.io.OutputStream getBody()
          Return the body of the message as an output stream.
 
Methods inherited from interface org.springframework.http.HttpMessage
getHeaders
 

Method Detail

getBody

java.io.OutputStream getBody()
                             throws java.io.IOException
Return the body of the message as an output stream.

Returns:
the output stream body
Throws:
java.io.IOException - in case of I/O Errors