Package net.officefloor.spring.webflux
Class OfficeFloorServerHttpRequest
- java.lang.Object
-
- org.springframework.http.server.reactive.AbstractServerHttpRequest
-
- net.officefloor.spring.webflux.OfficeFloorServerHttpRequest
-
- All Implemented Interfaces:
org.springframework.http.HttpMessage
,org.springframework.http.HttpRequest
,org.springframework.http.ReactiveHttpInputMessage
,org.springframework.http.server.reactive.ServerHttpRequest
,org.springframework.http.server.reactive.SslInfo
public class OfficeFloorServerHttpRequest extends org.springframework.http.server.reactive.AbstractServerHttpRequest implements org.springframework.http.server.reactive.SslInfo
OfficeFloor
ServerHttpRequest
.- Author:
- Daniel Sagenschneider
-
-
Constructor Summary
Constructors Constructor Description OfficeFloorServerHttpRequest(HttpRequest httpRequest, HttpRequestState requestState, java.lang.String contextPath, org.springframework.core.io.buffer.DataBufferFactory dataBufferFactory)
Instantiate.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description reactor.core.publisher.Flux<org.springframework.core.io.buffer.DataBuffer>
getBody()
java.lang.String
getMethodValue()
<T> T
getNativeRequest()
java.security.cert.X509Certificate[]
getPeerCertificates()
java.lang.String
getSessionId()
protected org.springframework.util.MultiValueMap<java.lang.String,org.springframework.http.HttpCookie>
initCookies()
protected org.springframework.http.server.reactive.SslInfo
initSslInfo()
void
loadPathParameters(org.springframework.web.server.ServerWebExchange exchange)
Loads the path parameters.-
Methods inherited from class org.springframework.http.server.reactive.AbstractServerHttpRequest
getCookies, getHeaders, getId, getPath, getQueryParams, getSslInfo, getURI, initId, initQueryParams
-
-
-
-
Constructor Detail
-
OfficeFloorServerHttpRequest
public OfficeFloorServerHttpRequest(HttpRequest httpRequest, HttpRequestState requestState, java.lang.String contextPath, org.springframework.core.io.buffer.DataBufferFactory dataBufferFactory) throws java.net.URISyntaxException
Instantiate.- Parameters:
httpRequest
-HttpRequest
.requestState
-HttpRequestState
.contextPath
- Context path.dataBufferFactory
-DataBufferFactory
.- Throws:
java.net.URISyntaxException
- If fails to createURI
.
-
-
Method Detail
-
loadPathParameters
public void loadPathParameters(org.springframework.web.server.ServerWebExchange exchange)
Loads the path parameters.- Parameters:
exchange
-ServerWebExchange
.
-
initSslInfo
protected org.springframework.http.server.reactive.SslInfo initSslInfo()
- Specified by:
initSslInfo
in classorg.springframework.http.server.reactive.AbstractServerHttpRequest
-
getMethodValue
public java.lang.String getMethodValue()
- Specified by:
getMethodValue
in interfaceorg.springframework.http.HttpRequest
-
initCookies
protected org.springframework.util.MultiValueMap<java.lang.String,org.springframework.http.HttpCookie> initCookies()
- Specified by:
initCookies
in classorg.springframework.http.server.reactive.AbstractServerHttpRequest
-
getBody
public reactor.core.publisher.Flux<org.springframework.core.io.buffer.DataBuffer> getBody()
- Specified by:
getBody
in interfaceorg.springframework.http.ReactiveHttpInputMessage
-
getNativeRequest
public <T> T getNativeRequest()
- Specified by:
getNativeRequest
in classorg.springframework.http.server.reactive.AbstractServerHttpRequest
-
getSessionId
public java.lang.String getSessionId()
- Specified by:
getSessionId
in interfaceorg.springframework.http.server.reactive.SslInfo
-
getPeerCertificates
public java.security.cert.X509Certificate[] getPeerCertificates()
- Specified by:
getPeerCertificates
in interfaceorg.springframework.http.server.reactive.SslInfo
-
-