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, wait
getContextPath
getMethod
getBody
public URI getURI()
HttpRequest
getURI
in interface HttpRequest
null
)public org.springframework.util.MultiValueMap<String,String> getQueryParams()
ServerHttpRequest
getQueryParams
in interface ServerHttpRequest
public HttpHeaders getHeaders()
HttpMessage
getHeaders
in interface HttpMessage
null
)public org.springframework.util.MultiValueMap<String,HttpCookie> getCookies()
ServerHttpRequest
getCookies
in interface ServerHttpRequest
protected abstract URI initUri() throws URISyntaxException
Invoked lazily on the first call to getURI()
and then cached.
URISyntaxException
protected 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.