public abstract class AbstractServerHttpRequest extends Object implements ServerHttpRequest
ServerHttpRequest implementations.| Constructor and Description |
|---|
AbstractServerHttpRequest() |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.util.MultiValueMap<String,HttpCookie> |
getCookies()
Return a read-only map of cookies sent by the client.
|
HttpHeaders |
getHeaders()
Return the headers of this message.
|
org.springframework.util.MultiValueMap<String,String> |
getQueryParams()
Return a read-only map with parsed and decoded query parameter values.
|
URI |
getURI()
Return the URI of the request.
|
protected abstract org.springframework.util.MultiValueMap<String,HttpCookie> |
initCookies()
Initialize the cookies from the underlying request.
|
protected abstract HttpHeaders |
initHeaders()
Initialize the headers from the underlying request.
|
protected org.springframework.util.MultiValueMap<String,String> |
initQueryParams() |
protected abstract URI |
initUri()
Initialize a URI that represents the request.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetContextPathgetMethodgetBodypublic URI getURI()
HttpRequestgetURI in interface HttpRequestnull)public org.springframework.util.MultiValueMap<String,String> getQueryParams()
ServerHttpRequestgetQueryParams in interface ServerHttpRequestpublic HttpHeaders getHeaders()
HttpMessagegetHeaders in interface HttpMessagenull)public org.springframework.util.MultiValueMap<String,HttpCookie> getCookies()
ServerHttpRequestgetCookies in interface ServerHttpRequestprotected abstract URI initUri() throws URISyntaxException
Invoked lazily on the first call to getURI() and then cached.
URISyntaxExceptionprotected abstract HttpHeaders initHeaders()
Invoked lazily on the first call to getHeaders() and then cached.
protected abstract org.springframework.util.MultiValueMap<String,HttpCookie> initCookies()
Invoked lazily on the first access to cookies via getHeaders()
and then cached.