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
public InputStream getBody() throws IOException
HttpInputMessage
getBody
in interface HttpInputMessage
IOException
- in case of I/O Errors