Top Description Methods
org.springframework.http

public Interface HttpOutputMessage

extends HttpMessage
Known Direct Subinterfaces
org.springframework.http.StreamingHttpOutputMessage, org.springframework.http.client.ClientHttpRequest, org.springframework.http.server.ServerHttpResponse
Known Direct Implementers
org.springframework.http.converter.FormHttpMessageConverter.MultipartHttpOutputMessage
Imports
java.io.IOException, .OutputStream

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

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

Author
Arjen Poutsma
Since
3.0

Method Summary

Modifier and TypeMethod and Description
public OutputStream

Returns:

the output stream body (never null)
getBody
()

Return the body of the message as an output stream.

Inherited from org.springframework.http.HttpMessage:
getHeaders

Method Detail

getBodyback to summary
public OutputStream getBody() throws IOException

Return the body of the message as an output stream.

Returns:OutputStream

the output stream body (never null)

Exceptions
IOException:
in case of I/O errors