public class MockHttpInputMessage extends Object implements HttpInputMessage
HttpInputMessage
.Constructor and Description |
---|
MockHttpInputMessage(byte[] contents) |
MockHttpInputMessage(InputStream body) |
Modifier and Type | Method and Description |
---|---|
InputStream |
getBody()
Return the body of the message as an input stream.
|
HttpHeaders |
getHeaders()
Return the headers of this message.
|
public MockHttpInputMessage(byte[] contents)
public MockHttpInputMessage(InputStream body)
public HttpHeaders getHeaders()
HttpMessage
getHeaders
in interface HttpMessage
null
)public InputStream getBody() throws IOException
HttpInputMessage
getBody
in interface HttpInputMessage
null
)IOException
- in case of I/O Errors