public class MockHttpInputMessage extends java.lang.Object implements HttpInputMessage
HttpInputMessage
.Constructor and Description |
---|
MockHttpInputMessage(byte[] contents) |
MockHttpInputMessage(java.io.InputStream body) |
Modifier and Type | Method and Description |
---|---|
java.io.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(java.io.InputStream body)
public HttpHeaders getHeaders()
HttpMessage
getHeaders
in interface HttpMessage
null
)public java.io.InputStream getBody() throws java.io.IOException
HttpInputMessage
getBody
in interface HttpInputMessage
null
)java.io.IOException
- in case of I/O errors