public class ServerHttpRequestDecorator extends java.lang.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<java.lang.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.
|
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.InetSocketAddress |
getRemoteAddress()
Return the remote address where this request is connected to, if available.
|
SslInfo |
getSslInfo()
Return the SSL session information if the request has been transmitted
over a secure protocol including SSL certificates, if available.
|
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).
|
java.lang.String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
mutate
public ServerHttpRequestDecorator(ServerHttpRequest delegate)
public ServerHttpRequest getDelegate()
@Nullable public HttpMethod getMethod()
HttpRequest
getMethod
in interface HttpRequest
null
if not resolvable (e.g. in case of a non-standard HTTP method)HttpRequest.getMethodValue()
,
HttpMethod.resolve(String)
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 MultiValueMap<java.lang.String,java.lang.String> getQueryParams()
ServerHttpRequest
getQueryParams
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 java.net.InetSocketAddress getRemoteAddress()
ServerHttpRequest
getRemoteAddress
in interface ServerHttpRequest
@Nullable public SslInfo getSslInfo()
ServerHttpRequest
getSslInfo
in interface ServerHttpRequest
null
if none availablepublic reactor.core.publisher.Flux<DataBuffer> getBody()
ReactiveHttpInputMessage
Publisher
.getBody
in interface ReactiveHttpInputMessage
public java.lang.String toString()
toString
in class java.lang.Object