Package org.springframework.mock.http
Class MockHttpInputMessage
java.lang.Object
org.springframework.mock.http.MockHttpInputMessage
- All Implemented Interfaces:
org.springframework.http.HttpInputMessage
,org.springframework.http.HttpMessage
- Direct Known Subclasses:
MockClientHttpResponse
public class MockHttpInputMessage
extends Object
implements org.springframework.http.HttpInputMessage
Mock implementation of
HttpInputMessage
.- Since:
- 3.2
- Author:
- Rossen Stoyanchev
-
Constructor Summary
ConstructorDescriptionMockHttpInputMessage
(byte[] body) Create aMockHttpInputMessage
with the supplied body.Create aMockHttpInputMessage
with the supplied body. -
Method Summary
-
Constructor Details
-
MockHttpInputMessage
public MockHttpInputMessage(byte[] body) Create aMockHttpInputMessage
with the supplied body. -
MockHttpInputMessage
Create aMockHttpInputMessage
with the supplied body.
-
-
Method Details
-
getHeaders
public org.springframework.http.HttpHeaders getHeaders()- Specified by:
getHeaders
in interfaceorg.springframework.http.HttpMessage
-
getBody
- Specified by:
getBody
in interfaceorg.springframework.http.HttpInputMessage
- Throws:
IOException
-