private static class DefaultServerRequestBuilder.BuiltServerHttpRequest extends java.lang.Object implements ServerHttpRequest
ServerHttpRequest.Builder
Modifier and Type | Field and Description |
---|---|
private <any> |
body |
private MultiValueMap<java.lang.String,HttpCookie> |
cookies |
private HttpHeaders |
headers |
private java.lang.String |
id |
private java.lang.String |
method |
private RequestPath |
path |
private static java.util.regex.Pattern |
QUERY_PATTERN |
private MultiValueMap<java.lang.String,java.lang.String> |
queryParams |
private java.net.URI |
uri |
Constructor and Description |
---|
BuiltServerHttpRequest(java.lang.String id,
java.lang.String method,
java.net.URI uri,
HttpHeaders headers,
MultiValueMap<java.lang.String,HttpCookie> cookies,
<any> body) |
Modifier and Type | Method and Description |
---|---|
<any> |
getBody()
Return the body of the message as a
Publisher . |
MultiValueMap<java.lang.String,HttpCookie> |
getCookies()
Return a read-only map of cookies sent by the client.
|
HttpHeaders |
getHeaders()
Return the headers of this message.
|
java.lang.String |
getId()
Return an id that represents the underlying connection, if available,
or the request for the purpose of correlating log messages.
|
java.lang.String |
getMethodValue()
Return the HTTP method of the request as a String value.
|
RequestPath |
getPath()
Returns a structured representation of the request path including the
context path + path within application portions, path segments with
encoded and decoded values, and path parameters.
|
MultiValueMap<java.lang.String,java.lang.String> |
getQueryParams()
Return a read-only map with parsed and decoded query parameter values.
|
java.net.URI |
getURI()
Return the URI of the request (including a query string if any,
but only if it is well-formed for a URI representation).
|
private static MultiValueMap<java.lang.String,java.lang.String> |
parseQueryParams(java.net.URI uri) |
private static <K,V> MultiValueMap<K,V> |
unmodifiableCopy(MultiValueMap<K,V> original) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getRemoteAddress, getSslInfo, mutate
getMethod
private static final java.util.regex.Pattern QUERY_PATTERN
private final java.lang.String id
private final java.lang.String method
private final java.net.URI uri
private final RequestPath path
private final MultiValueMap<java.lang.String,java.lang.String> queryParams
private final HttpHeaders headers
private final MultiValueMap<java.lang.String,HttpCookie> cookies
private final <any> body
public BuiltServerHttpRequest(java.lang.String id, java.lang.String method, java.net.URI uri, HttpHeaders headers, MultiValueMap<java.lang.String,HttpCookie> cookies, <any> body)
private static <K,V> MultiValueMap<K,V> unmodifiableCopy(MultiValueMap<K,V> original)
private static MultiValueMap<java.lang.String,java.lang.String> parseQueryParams(java.net.URI uri)
public java.lang.String getId()
ServerHttpRequest
getId
in interface ServerHttpRequest
ServerWebExchange.getLogPrefix()
public java.lang.String getMethodValue()
HttpRequest
getMethodValue
in interface HttpRequest
HttpRequest.getMethod()
public java.net.URI getURI()
HttpRequest
getURI
in interface HttpRequest
null
)public RequestPath getPath()
ServerHttpRequest
getPath
in interface ServerHttpRequest
public HttpHeaders getHeaders()
HttpMessage
getHeaders
in interface HttpMessage
null
)public MultiValueMap<java.lang.String,HttpCookie> getCookies()
ServerHttpRequest
getCookies
in interface ServerHttpRequest
public MultiValueMap<java.lang.String,java.lang.String> getQueryParams()
ServerHttpRequest
getQueryParams
in interface ServerHttpRequest
public <any> getBody()
ReactiveHttpInputMessage
Publisher
.getBody
in interface ReactiveHttpInputMessage