public class EmptyBodyCheckingHttpInputMessage extends Object implements org.springframework.http.HttpInputMessage
null| Constructor and Description |
|---|
EmptyBodyCheckingHttpInputMessage(org.springframework.http.HttpInputMessage inputMessage)
检查HTTP input message 的 getBody(),如果body中没有值,则返回
null |
| Modifier and Type | Method and Description |
|---|---|
InputStream |
getBody() |
org.springframework.http.HttpHeaders |
getHeaders() |
org.springframework.http.HttpMethod |
getMethod()
HTTP 请求方法
|
boolean |
hasBody()
判断请求 body 是否有值
|
public EmptyBodyCheckingHttpInputMessage(org.springframework.http.HttpInputMessage inputMessage)
throws IOException
nullinputMessage - an HTTP input messageIOException - IO异常public org.springframework.http.HttpHeaders getHeaders()
getHeaders in interface org.springframework.http.HttpMessagepublic InputStream getBody()
getBody in interface org.springframework.http.HttpInputMessagepublic boolean hasBody()
public org.springframework.http.HttpMethod getMethod()
Copyright © 2018. All rights reserved.