Package org.springframework.mock.http
Class MockHttpInputMessage
java.lang.Object
org.springframework.mock.http.MockHttpInputMessage
- All Implemented Interfaces:
- HttpInputMessage,- HttpMessage
- Direct Known Subclasses:
- MockClientHttpResponse
Mock implementation of 
HttpInputMessage.- Since:
- 3.2
- Author:
- Rossen Stoyanchev
- 
Constructor SummaryConstructorsConstructorDescriptionMockHttpInputMessage(byte[] body) Create aMockHttpInputMessagewith the supplied body.Create aMockHttpInputMessagewith the supplied body.
- 
Method SummaryModifier and TypeMethodDescriptiongetBody()Return the body of the message as an input stream.Return the headers of this message.
- 
Constructor Details- 
MockHttpInputMessagepublic MockHttpInputMessage(byte[] body) Create aMockHttpInputMessagewith the supplied body.
- 
MockHttpInputMessageCreate aMockHttpInputMessagewith the supplied body.
 
- 
- 
Method Details- 
getHeadersDescription copied from interface:HttpMessageReturn the headers of this message.- Specified by:
- getHeadersin interface- HttpMessage
- Returns:
- a corresponding HttpHeaders object (never null)
 
- 
getBodyDescription copied from interface:HttpInputMessageReturn the body of the message as an input stream.- Specified by:
- getBodyin interface- HttpInputMessage
- Returns:
- the input stream body (never null)
- Throws:
- IOException- in case of I/O errors
 
 
-