public class MockHttpOutputMessage extends Object implements org.springframework.http.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.
|
org.springframework.http.HttpHeaders |
getHeaders()
Return the headers.
|
public org.springframework.http.HttpHeaders getHeaders()
getHeaders in interface org.springframework.http.HttpMessagepublic OutputStream getBody() throws IOException
getBody in interface org.springframework.http.HttpOutputMessageIOExceptionpublic byte[] getBodyAsBytes()
public String getBodyAsString()