public class MockHttpOutputMessage extends Object implements HttpOutputMessage
HttpOutputMessage.| Constructor and Description | 
|---|
| MockHttpOutputMessage() | 
| Modifier and Type | Method and Description | 
|---|---|
| OutputStream | getBody()Return the body content. | 
| byte[] | getBodyAsBytes()Return body content as a byte array. | 
| String | getBodyAsString()Return the body content interpreted as a UTF-8 string. | 
| String | getBodyAsString(Charset charset)Return the body content as a string. | 
| HttpHeaders | getHeaders()Return the headers. | 
public HttpHeaders getHeaders()
getHeaders in interface HttpMessagenull)public OutputStream getBody() throws IOException
getBody in interface HttpOutputMessagenull)IOException - in case of I/O errorspublic byte[] getBodyAsBytes()
public String getBodyAsString()