public class MutableHttpServerRequest extends Object implements HttpServerRequest
HttpServerRequest implementation.| 构造器和说明 |
|---|
MutableHttpServerRequest(org.springframework.http.HttpRequest httpRequest,
byte[] body) |
| 限定符和类型 | 方法和说明 |
|---|---|
InputStream |
getBody() |
org.springframework.http.HttpHeaders |
getHeaders() |
org.springframework.http.HttpMethod |
getMethod() |
String |
getMethodValue() |
String |
getPath()
Return a path of current HTTP request.
|
org.springframework.util.MultiValueMap<String,String> |
getQueryParams()
Return a map with parsed and decoded query parameter values.
|
URI |
getURI() |
MutableHttpServerRequest |
params(Map<String,String> params) |
public MutableHttpServerRequest(org.springframework.http.HttpRequest httpRequest,
byte[] body)
public MutableHttpServerRequest params(Map<String,String> params)
public InputStream getBody() throws IOException
getBody 在接口中 org.springframework.http.HttpInputMessageIOExceptionpublic org.springframework.http.HttpMethod getMethod()
getMethod 在接口中 org.springframework.http.HttpRequestpublic String getMethodValue()
getMethodValue 在接口中 org.springframework.http.HttpRequestpublic URI getURI()
getURI 在接口中 org.springframework.http.HttpRequestpublic org.springframework.http.HttpHeaders getHeaders()
getHeaders 在接口中 org.springframework.http.HttpMessagepublic String getPath()
HttpServerRequestgetPath 在接口中 HttpServerRequestpublic org.springframework.util.MultiValueMap<String,String> getQueryParams()
HttpServerRequestgetQueryParams 在接口中 HttpServerRequestCopyright © 2020 Pivotal Software, Inc.. All rights reserved.