Package io.micronaut.spring.web.reactive
Class MicronautServerHttpRequest
java.lang.Object
org.springframework.http.server.reactive.AbstractServerHttpRequest
io.micronaut.spring.web.reactive.MicronautServerHttpRequest
- All Implemented Interfaces:
org.springframework.http.HttpMessage
,org.springframework.http.HttpRequest
,org.springframework.http.ReactiveHttpInputMessage
,org.springframework.http.server.reactive.ServerHttpRequest
public class MicronautServerHttpRequest
extends org.springframework.http.server.reactive.AbstractServerHttpRequest
Micronaut implementation of
ServerHttpRequest
.- Since:
- 1.0
- Author:
- graemerocher
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.springframework.http.server.reactive.ServerHttpRequest
org.springframework.http.server.reactive.ServerHttpRequest.Builder
-
Constructor Summary
ConstructorDescriptionMicronautServerHttpRequest
(io.micronaut.http.HttpRequest<?> request, ChannelResolver channelResolver, io.micronaut.http.server.HttpServerConfiguration serverConfiguration) Default constructor. -
Method Summary
Modifier and TypeMethodDescriptionreactor.core.publisher.Flux<org.springframework.core.io.buffer.DataBuffer>
getBody()
org.springframework.http.HttpMethod
<T> T
protected org.springframework.util.MultiValueMap<String,
org.springframework.http.HttpCookie> protected org.springframework.http.server.reactive.SslInfo
Methods inherited from class org.springframework.http.server.reactive.AbstractServerHttpRequest
getAttributes, getCookies, getHeaders, getId, getPath, getQueryParams, getSslInfo, getURI, initId, initLogPrefix, initQueryParams, setAttributesSupplier
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.http.server.reactive.ServerHttpRequest
getLocalAddress, getRemoteAddress, mutate
-
Constructor Details
-
MicronautServerHttpRequest
public MicronautServerHttpRequest(io.micronaut.http.HttpRequest<?> request, ChannelResolver channelResolver, io.micronaut.http.server.HttpServerConfiguration serverConfiguration) Default constructor.- Parameters:
request
- The request to adaptchannelResolver
- The channel resolverserverConfiguration
- The server configuration
-
-
Method Details
-
initCookies
protected org.springframework.util.MultiValueMap<String,org.springframework.http.HttpCookie> initCookies()- Specified by:
initCookies
in classorg.springframework.http.server.reactive.AbstractServerHttpRequest
-
initSslInfo
protected org.springframework.http.server.reactive.SslInfo initSslInfo()- Specified by:
initSslInfo
in classorg.springframework.http.server.reactive.AbstractServerHttpRequest
-
getNativeRequest
public <T> T getNativeRequest()- Specified by:
getNativeRequest
in classorg.springframework.http.server.reactive.AbstractServerHttpRequest
-
getMethod
public org.springframework.http.HttpMethod getMethod()- Specified by:
getMethod
in interfaceorg.springframework.http.HttpRequest
- Overrides:
getMethod
in classorg.springframework.http.server.reactive.AbstractServerHttpRequest
-
getBody
public reactor.core.publisher.Flux<org.springframework.core.io.buffer.DataBuffer> getBody()
-