public interface Request
Modifier and Type | Method and Description |
---|---|
TypedData |
getBody()
The body of the request.
|
Set<Cookie> |
getCookies()
The cookies that were sent with the request.
|
Headers |
getHeaders()
The request headers.
|
HttpMethod |
getMethod()
The method of the request.
|
String |
getPath()
The URI without the query string and leading forward slash.
|
String |
getQuery()
The query string component of the request URI, without the "?".
|
MultiValueMap<String,String> |
getQueryParams()
TBD.
|
String |
getUri()
The complete URI of the request (path + query string).
|
String |
oneCookie(String name)
Returns the value of the cookie with the specified name if it was sent.
|
HttpMethod getMethod()
String getUri()
This value is always absolute (i.e. begins with "/
").
String getQuery()
If the request does not contain a query component, an empty string will be returned.
String getPath()
MultiValueMap<String,String> getQueryParams()
Set<Cookie> getCookies()
An empty set will be returned if no cookies were sent.
@Nullable String oneCookie(String name)
If there is more than one cookie with this name, this method will throw an exception.
name
- The name of the cookie to get the value ofTypedData getBody()
If this request does not have a body, an non null object is still returned but it effectively has no data.
Headers getHeaders()