接口 HttpInputMessage
- 所有超级接口:
HttpMessage
- 所有已知子接口:
ClientHttpResponse
,ServerHttpRequest
- 所有已知实现类:
AbstractClientHttpResponse
,MappingJacksonInputMessage
,MockClientHttpResponse
,MockHttpInputMessage
,RequestPartServletServerHttpRequest
,ServletServerHttpRequest
public interface HttpInputMessage extends HttpMessage
Represents an HTTP input message, consisting of headers and a readable body.Typically implemented by an HTTP request handle on the server side, or an HTTP response handle on the client side.
- 从以下版本开始:
- 3.0
- 作者:
- Arjen Poutsma
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 InputStream
getBody()
Return the body of the message as an input stream.从接口继承的方法 org.springframework.http.HttpMessage
getHeaders
方法详细资料
getBody
InputStream getBody() throws IOException
Return the body of the message as an input stream.- 返回:
- the input stream body (never
null
) - 抛出:
IOException
- in case of I/O errors