public class ReactorServerHttpRequest extends AbstractServerHttpRequest
ServerHttpRequest to the Reactor Net HttpChannel.| Constructor and Description |
|---|
ReactorServerHttpRequest(reactor.ipc.netty.http.HttpChannel request,
org.springframework.core.io.buffer.NettyDataBufferFactory bufferFactory) |
| Modifier and Type | Method and Description |
|---|---|
reactor.core.publisher.Flux<org.springframework.core.io.buffer.DataBuffer> |
getBody()
Return the body of the message as a
Publisher. |
HttpMethod |
getMethod()
Return the HTTP method of the request.
|
reactor.ipc.netty.http.HttpChannel |
getReactorChannel() |
protected org.springframework.util.MultiValueMap<String,HttpCookie> |
initCookies()
Initialize the cookies from the underlying request.
|
protected HttpHeaders |
initHeaders()
Initialize the headers from the underlying request.
|
protected URI |
initUri()
Initialize a URI that represents the request.
|
getCookies, getHeaders, getQueryParams, getURI, initQueryParamsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetContextPathpublic ReactorServerHttpRequest(reactor.ipc.netty.http.HttpChannel request,
org.springframework.core.io.buffer.NettyDataBufferFactory bufferFactory)
public reactor.ipc.netty.http.HttpChannel getReactorChannel()
public HttpMethod getMethod()
HttpRequestnull
if not resolvable (e.g. in case of a non-standard HTTP method)protected URI initUri() throws URISyntaxException
AbstractServerHttpRequestInvoked lazily on the first call to AbstractServerHttpRequest.getURI() and then cached.
initUri in class AbstractServerHttpRequestURISyntaxExceptionprotected HttpHeaders initHeaders()
AbstractServerHttpRequestInvoked lazily on the first call to AbstractServerHttpRequest.getHeaders() and then cached.
initHeaders in class AbstractServerHttpRequestprotected org.springframework.util.MultiValueMap<String,HttpCookie> initCookies()
AbstractServerHttpRequestInvoked lazily on the first access to cookies via AbstractServerHttpRequest.getHeaders()
and then cached.
initCookies in class AbstractServerHttpRequestpublic reactor.core.publisher.Flux<org.springframework.core.io.buffer.DataBuffer> getBody()
ReactiveHttpInputMessagePublisher.