public abstract class AbstractServerHttpRequest extends Object implements ServerHttpRequest
ServerHttpRequest
implementations.Constructor and Description |
---|
AbstractServerHttpRequest() |
Modifier and Type | Method and Description |
---|---|
MultiValueMap<String,HttpCookie> |
getCookies()
Return a read-only map of cookies sent by the client.
|
HttpHeaders |
getHeaders()
Return the headers of this message.
|
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 MultiValueMap<String,HttpCookie> |
initCookies()
Initialize the cookies from the underlying request.
|
protected abstract HttpHeaders |
initHeaders()
Initialize the headers from the underlying request.
|
protected 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 MultiValueMap<String,String> getQueryParams()
ServerHttpRequest
getQueryParams
in interface ServerHttpRequest
protected MultiValueMap<String,String> initQueryParams()
public HttpHeaders getHeaders()
HttpMessage
getHeaders
in interface HttpMessage
null
)public 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 MultiValueMap<String,HttpCookie> initCookies()
Invoked lazily on the first access to cookies via getHeaders()
and then cached.