public class ServerHttpRequestDecorator extends Object implements ServerHttpRequest
ServerHttpRequest
and delegates all methods to it.
Sub-classes can override specific methods selectively.ServerHttpRequest.Builder
Constructor and Description |
---|
ServerHttpRequestDecorator(ServerHttpRequest delegate) |
Modifier and Type | Method and Description |
---|---|
reactor.core.publisher.Flux<DataBuffer> |
getBody()
Return the body of the message as a
Publisher . |
MultiValueMap<String,HttpCookie> |
getCookies()
Return a read-only map of cookies sent by the client.
|
ServerHttpRequest |
getDelegate() |
HttpHeaders |
getHeaders()
Return the headers of this message.
|
HttpMethod |
getMethod()
Return the HTTP method of the request.
|
MultiValueMap<String,String> |
getQueryParams()
Return a read-only map with parsed and decoded query parameter values.
|
Optional<InetSocketAddress> |
getRemoteAddress()
Returns the remote address where this request is connected to.
|
URI |
getURI()
Return the URI of the request.
|
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getContextPath, mutate
public ServerHttpRequestDecorator(ServerHttpRequest delegate)
public ServerHttpRequest getDelegate()
public HttpMethod getMethod()
HttpRequest
getMethod
in interface HttpRequest
null
if not resolvable (e.g. in case of a non-standard HTTP method)public URI getURI()
HttpRequest
getURI
in interface HttpRequest
null
)public MultiValueMap<String,String> getQueryParams()
ServerHttpRequest
getQueryParams
in interface ServerHttpRequest
public HttpHeaders getHeaders()
HttpMessage
getHeaders
in interface HttpMessage
null
)public MultiValueMap<String,HttpCookie> getCookies()
ServerHttpRequest
getCookies
in interface ServerHttpRequest
public Optional<InetSocketAddress> getRemoteAddress()
ServerHttpRequest
getRemoteAddress
in interface ServerHttpRequest
public reactor.core.publisher.Flux<DataBuffer> getBody()
ReactiveHttpInputMessage
Publisher
.getBody
in interface ReactiveHttpInputMessage