public class RxNettyServerHttpResponse extends AbstractServerHttpResponse
ServerHttpResponse to the RxNetty HttpServerResponse.| Constructor and Description |
|---|
RxNettyServerHttpResponse(io.reactivex.netty.protocol.http.server.HttpServerResponse<io.netty.buffer.ByteBuf> response,
org.springframework.core.io.buffer.NettyDataBufferFactory dataBufferFactory) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
applyCookies()
Implement this method to add cookies from
AbstractServerHttpResponse.getHeaders() to the
underlying response. |
protected void |
applyHeaders()
Implement this method to apply header changes from
AbstractServerHttpResponse.getHeaders()
to the underlying response. |
protected void |
applyStatusCode()
Implement this method to write the status code to the underlying response.
|
io.reactivex.netty.protocol.http.server.HttpServerResponse<?> |
getRxNettyResponse() |
protected reactor.core.publisher.Mono<Void> |
writeAndFlushWithInternal(org.reactivestreams.Publisher<? extends org.reactivestreams.Publisher<? extends org.springframework.core.io.buffer.DataBuffer>> body)
Implement this method to write to the underlying the response, and flush after
each
Publisher<DataBuffer>. |
protected reactor.core.publisher.Mono<Void> |
writeWithInternal(org.reactivestreams.Publisher<? extends org.springframework.core.io.buffer.DataBuffer> body)
Implement this method to write to the underlying the response.
|
beforeCommit, bufferFactory, doCommit, doCommit, encodeUrl, getCookies, getHeaders, getStatusCode, registerUrlEncoder, setComplete, setStatusCode, writeAndFlushWith, writeWithpublic RxNettyServerHttpResponse(io.reactivex.netty.protocol.http.server.HttpServerResponse<io.netty.buffer.ByteBuf> response,
org.springframework.core.io.buffer.NettyDataBufferFactory dataBufferFactory)
public io.reactivex.netty.protocol.http.server.HttpServerResponse<?> getRxNettyResponse()
protected void applyStatusCode()
AbstractServerHttpResponseapplyStatusCode in class AbstractServerHttpResponseprotected reactor.core.publisher.Mono<Void> writeWithInternal(org.reactivestreams.Publisher<? extends org.springframework.core.io.buffer.DataBuffer> body)
AbstractServerHttpResponsewriteWithInternal in class AbstractServerHttpResponsebody - the publisher to write withprotected reactor.core.publisher.Mono<Void> writeAndFlushWithInternal(org.reactivestreams.Publisher<? extends org.reactivestreams.Publisher<? extends org.springframework.core.io.buffer.DataBuffer>> body)
AbstractServerHttpResponsePublisher<DataBuffer>.writeAndFlushWithInternal in class AbstractServerHttpResponsebody - the publisher to write and flush withprotected void applyHeaders()
AbstractServerHttpResponseAbstractServerHttpResponse.getHeaders()
to the underlying response. This method is called once only.applyHeaders in class AbstractServerHttpResponseprotected void applyCookies()
AbstractServerHttpResponseAbstractServerHttpResponse.getHeaders() to the
underlying response. This method is called once only.applyCookies in class AbstractServerHttpResponse