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
ConstructorsConstructorDescriptionOfficeFloorServerHttpResponse(HttpResponse httpResponse, org.springframework.core.io.buffer.DataBufferFactory dataBufferFactory) Instantiate. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprotected voidprotected voidprotected org.reactivestreams.Processor<? super org.reactivestreams.Publisher<? extends org.springframework.core.io.buffer.DataBuffer>,Void> <T> TMethods inherited from class org.springframework.http.server.reactive.AbstractListenerServerHttpResponse
writeAndFlushWithInternal, writeWithInternalMethods inherited from class org.springframework.http.server.reactive.AbstractServerHttpResponse
addCookie, beforeCommit, bufferFactory, doCommit, doCommit, getCookies, getHeaders, getStatusCode, isCommitted, setComplete, setRawStatusCode, setStatusCode, touchDataBuffer, writeAndFlushWith, writeWithMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.http.server.reactive.ServerHttpResponse
getRawStatusCode
-
Constructor Details
-
OfficeFloorServerHttpResponse
public OfficeFloorServerHttpResponse(HttpResponse httpResponse, org.springframework.core.io.buffer.DataBufferFactory dataBufferFactory) throws IOException Instantiate.- Parameters:
httpResponse-HttpResponse.dataBufferFactory-DataBufferFactory.- Throws:
IOException- If fails to setup response.
-
-
Method Details
-
applyStatusCode
protected void applyStatusCode()- Specified by:
applyStatusCodein classorg.springframework.http.server.reactive.AbstractServerHttpResponse
-
applyHeaders
protected void applyHeaders()- Specified by:
applyHeadersin classorg.springframework.http.server.reactive.AbstractServerHttpResponse
-
applyCookies
protected void applyCookies()- Specified by:
applyCookiesin classorg.springframework.http.server.reactive.AbstractServerHttpResponse
-
createBodyFlushProcessor
protected org.reactivestreams.Processor<? super org.reactivestreams.Publisher<? extends org.springframework.core.io.buffer.DataBuffer>,Void> createBodyFlushProcessor()- Specified by:
createBodyFlushProcessorin classorg.springframework.http.server.reactive.AbstractListenerServerHttpResponse
-
getNativeResponse
public <T> T getNativeResponse()- Specified by:
getNativeResponsein classorg.springframework.http.server.reactive.AbstractServerHttpResponse
-