Package net.officefloor.spring.webflux
Class OfficeFloorServerHttpResponse
- java.lang.Object
-
- org.springframework.http.server.reactive.AbstractServerHttpResponse
-
- org.springframework.http.server.reactive.AbstractListenerServerHttpResponse
-
- net.officefloor.spring.webflux.OfficeFloorServerHttpResponse
-
- All Implemented Interfaces:
org.springframework.http.HttpMessage
,org.springframework.http.ReactiveHttpOutputMessage
,org.springframework.http.server.reactive.ServerHttpResponse
public class OfficeFloorServerHttpResponse extends org.springframework.http.server.reactive.AbstractListenerServerHttpResponse
OfficeFloor
ServerHttpResponse
.- Author:
- Daniel Sagenschneider
-
-
Constructor Summary
Constructors Constructor Description OfficeFloorServerHttpResponse(HttpResponse httpResponse, org.springframework.core.io.buffer.DataBufferFactory dataBufferFactory)
Instantiate.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
applyCookies()
protected void
applyHeaders()
protected void
applyStatusCode()
protected org.reactivestreams.Processor<? super org.reactivestreams.Publisher<? extends org.springframework.core.io.buffer.DataBuffer>,java.lang.Void>
createBodyFlushProcessor()
<T> T
getNativeResponse()
-
Methods inherited from class org.springframework.http.server.reactive.AbstractListenerServerHttpResponse
writeAndFlushWithInternal, writeWithInternal
-
Methods inherited from class org.springframework.http.server.reactive.AbstractServerHttpResponse
addCookie, beforeCommit, bufferFactory, doCommit, doCommit, getCookies, getHeaders, getRawStatusCode, getStatusCode, getStatusCodeValue, isCommitted, setComplete, setRawStatusCode, setStatusCode, setStatusCodeValue, touchDataBuffer, writeAndFlushWith, writeWith
-
-
-
-
Constructor Detail
-
OfficeFloorServerHttpResponse
public OfficeFloorServerHttpResponse(HttpResponse httpResponse, org.springframework.core.io.buffer.DataBufferFactory dataBufferFactory) throws java.io.IOException
Instantiate.- Parameters:
httpResponse
-HttpResponse
.dataBufferFactory
-DataBufferFactory
.- Throws:
java.io.IOException
- If fails to setup response.
-
-
Method Detail
-
applyStatusCode
protected void applyStatusCode()
- Specified by:
applyStatusCode
in classorg.springframework.http.server.reactive.AbstractServerHttpResponse
-
applyHeaders
protected void applyHeaders()
- Specified by:
applyHeaders
in classorg.springframework.http.server.reactive.AbstractServerHttpResponse
-
applyCookies
protected void applyCookies()
- Specified by:
applyCookies
in classorg.springframework.http.server.reactive.AbstractServerHttpResponse
-
createBodyFlushProcessor
protected org.reactivestreams.Processor<? super org.reactivestreams.Publisher<? extends org.springframework.core.io.buffer.DataBuffer>,java.lang.Void> createBodyFlushProcessor()
- Specified by:
createBodyFlushProcessor
in classorg.springframework.http.server.reactive.AbstractListenerServerHttpResponse
-
getNativeResponse
public <T> T getNativeResponse()
- Specified by:
getNativeResponse
in classorg.springframework.http.server.reactive.AbstractServerHttpResponse
-
-